Skip to content

Commit

Permalink
add missing coverage for RoutingResults::getUri() method
Browse files Browse the repository at this point in the history
  • Loading branch information
l0gicgate committed Apr 20, 2019
1 parent 8463e54 commit 1ce3288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Routing/DispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ public function testDispatch()
$results = $dispatcher->dispatch('GET', '/hello/Foo%20Bar');

$this->assertEquals(RoutingResults::FOUND, $results->getRouteStatus());
$this->assertEquals('GET', $results->getMethod());
$this->assertEquals('/hello/Foo%20Bar', $results->getUri());
$this->assertEquals($route->getIdentifier(), $results->getRouteIdentifier());
$this->assertEquals(['name' => 'Foo Bar'], $results->getRouteArguments());
$this->assertEquals(['name' => 'Foo%20Bar'], $results->getRouteArguments(false));
$this->assertEquals('GET', $results->getMethod());
$this->assertEquals($methods, $results->getAllowedMethods());
$this->assertSame($dispatcher, $results->getDispatcher());
}
Expand Down

0 comments on commit 1ce3288

Please sign in to comment.