Skip to content

Commit 3d006bf

Browse files
committed
Used better assert
1 parent c307f98 commit 3d006bf

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)