Skip to content

Commit 3e0132d

Browse files
minor #26002 Improve assertions (carusogabriel)
This PR was merged into the 3.4 branch. Discussion ---------- Improve assertions | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Following #25420 in `3.4` branch. Commits ------- 829f59d Improve assertions
2 parents fdeff27 + b87d4e7 commit 3e0132d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/RouteCollectionBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function testAddsThePrefixOnlyOnceWhenLoadingMultipleCollections()
357357
$routeCollectionBuilder->import('/directory/recurse/*', '/other/', 'glob');
358358
$routes = $routeCollectionBuilder->build()->all();
359359

360-
$this->assertEquals(2, count($routes));
360+
$this->assertCount(2, $routes);
361361
$this->assertEquals('/other/a', $routes['a']->getPath());
362362
$this->assertEquals('/other/b', $routes['b']->getPath());
363363
}

0 commit comments

Comments
 (0)