Skip to content

Commit

Permalink
Use dedicated assertCount assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel authored and sebastianbergmann committed Jul 9, 2018
1 parent 0b52fd1 commit c43445d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/Framework/Constraint/StringContainsTest.php
Expand Up @@ -49,7 +49,7 @@ public function testConstraintStringContainsWhenIgnoreCase(): void
$this->assertTrue($constraint->evaluate('ORYGINAŁ', '', true));
$this->assertTrue($constraint->evaluate('oryginał', '', true));
$this->assertEquals('contains "oryginał"', $constraint->toString());
$this->assertEquals(1, \count($constraint));
$this->assertCount(1, $constraint);

$this->expectException(ExpectationFailedException::class);

Expand All @@ -64,7 +64,7 @@ public function testConstraintStringContainsForUtf8StringWhenNotIgnoreCase(): vo
$this->assertFalse($constraint->evaluate('ORYGINAŁ', '', true));
$this->assertTrue($constraint->evaluate('oryginał', '', true));
$this->assertEquals('contains "oryginał"', $constraint->toString());
$this->assertEquals(1, \count($constraint));
$this->assertCount(1, $constraint);

$this->expectException(ExpectationFailedException::class);

Expand Down
4 changes: 2 additions & 2 deletions tests/Framework/ConstraintTest.php
Expand Up @@ -1142,7 +1142,7 @@ public function testConstraintStringNotContainsWhenIgnoreCase(): void
$this->assertFalse($constraint->evaluate('ORYGINAŁ', '', true));
$this->assertFalse($constraint->evaluate('oryginał', '', true));
$this->assertEquals('does not contain "oryginał"', $constraint->toString());
$this->assertEquals(1, \count($constraint));
$this->assertCount(1, $constraint);

$this->expectException(ExpectationFailedException::class);

Expand All @@ -1159,7 +1159,7 @@ public function testConstraintStringNotContainsForUtf8StringWhenNotIgnoreCase():
$this->assertTrue($constraint->evaluate('ORYGINAŁ', '', true));
$this->assertFalse($constraint->evaluate('oryginał', '', true));
$this->assertEquals('does not contain "oryginał"', $constraint->toString());
$this->assertEquals(1, \count($constraint));
$this->assertCount(1, $constraint);

$this->expectException(ExpectationFailedException::class);

Expand Down

0 comments on commit c43445d

Please sign in to comment.