Skip to content

Commit

Permalink
Use dedicated PHPUnit assertion methods (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel authored and egulias committed Jan 5, 2018
1 parent 74c0f07 commit a0e0fad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/EmailValidator/Validation/RFCValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ public function testInvalidEmailsWithWarningsCheck($expectedWarnings, $email)
{
$this->assertTrue($this->validator->isValid($email, $this->lexer));
$warnings = $this->validator->getWarnings();
$this->assertTrue(
count($warnings) === count($expectedWarnings),
$this->assertCount(
count($warnings), $expectedWarnings,
"Expected: " . implode(",", $expectedWarnings) . " and got " . implode(",", $warnings)
);

foreach ($warnings as $warning) {
$this->assertTrue(isset($expectedWarnings[$warning->code()]));
$this->assertArrayHasKey($warning->code(), $expectedWarnings);
}
}

Expand Down

0 comments on commit a0e0fad

Please sign in to comment.