Skip to content

Commit 39bb286

Browse files
committed
Merge pull request #147 from WouterJ/improve_asserts
Used better assert
2 parents 9782054 + 3d006bf commit 39bb286

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Tests/Functional/Doctrine/Phpcr/RouteProviderTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ public function testGetRouteCollectionForRequest()
4949

5050
$routes = $this->repository->getRouteCollectionForRequest(Request::create('/testroute/noroute/child'));
5151
$this->assertCount(3, $routes);
52-
53-
foreach ($routes as $route) {
54-
$this->assertInstanceOf('Symfony\\Cmf\\Component\\Routing\\RouteObjectInterface', $route);
55-
}
52+
$this->assertContainsOnlyInstancesOf('Symfony\\Cmf\\Component\\Routing\\RouteObjectInterface', $routes);
5653
}
5754

5855
public function testFindNophpcrUrl()

0 commit comments

Comments
 (0)