summaryrefslogtreecommitdiff
path: root/tests/Unit/Routing/UrlGeneratorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Routing/UrlGeneratorTest.php')
-rw-r--r--tests/Unit/Routing/UrlGeneratorTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Unit/Routing/UrlGeneratorTest.php b/tests/Unit/Routing/UrlGeneratorTest.php
index 5b53a04e..fc23520a 100644
--- a/tests/Unit/Routing/UrlGeneratorTest.php
+++ b/tests/Unit/Routing/UrlGeneratorTest.php
@@ -32,6 +32,7 @@ class UrlGeneratorTest extends TestCase
public function testTo($urlToPath, $path, $willReturn, $arguments, $expectedUrl)
{
$app = new Container();
+ $urlGenerator = new UrlGenerator();
Application::setInstance($app);
$request = $this->getMockBuilder(Request::class)
@@ -44,7 +45,7 @@ class UrlGeneratorTest extends TestCase
$app->instance('request', $request);
- $url = UrlGenerator::to($urlToPath, $arguments);
+ $url = $urlGenerator->to($urlToPath, $arguments);
$this->assertEquals($expectedUrl, $url);
}
}