Skip to content

Commit 3597e44

Browse files
bighappyfaceerayd
authored andcommitted
Merge pull request #487 from localheinz/fix/assertion
Fix: Use more appropriate assertions
1 parent ce95363 commit 3597e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Constraints/FormatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testInvalidFormat($string, $format)
7777
$schema->format = $format;
7878

7979
$validator->check($string, $schema);
80-
$this->assertEquals(1, count($validator->getErrors()), 'Expected 1 error');
80+
$this->assertCount(1, $validator->getErrors(), 'Expected 1 error');
8181
}
8282

8383
/**

0 commit comments

Comments
 (0)