Skip to content

Commit d55ff42

Browse files
committed
Improve error message when test fails (Case 162267)
1 parent 39aec22 commit d55ff42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AppBundle/Tests/Entity/VersionConstraintTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public function versionConstraintMatches(string $operator, string $version, arra
3535

3636
$matches = $this->matchPackageVersions($versionConstraint, $packageVersions);
3737

38-
$this->assertCount(count($expectedMatches), $matches);
39-
4038
$matches = array_map(function ($match) {
4139
return $match->getPrettyVersion();
4240
}, $matches);
@@ -48,6 +46,8 @@ public function versionConstraintMatches(string $operator, string $version, arra
4846
foreach ($nonMatches as $nonMatch) {
4947
$this->assertNotContains($nonMatch, $matches);
5048
}
49+
50+
$this->assertCount(count($expectedMatches), $matches);
5151
}
5252

5353
/**

0 commit comments

Comments
 (0)