Skip to content

Commit

Permalink
Fixed ide suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
idmarinas committed Dec 27, 2023
1 parent 374f19e commit 88f0317
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/Validator/ContainsIsEvenValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function testConstraintInvalid()
{
try {
$this->validator->validate(5, new IsOdd());
$this->assertFalse(true, 'Fail expect a exception for argument of Constrait not is correct');
$this->fail('Fail expect a exception for argument of Constraint not is correct');
} catch (Throwable $th) {
// -- Expected argument of type "Idm\Bundle\Common\Validator\Constraints\IsEven", "Idm\Bundle\Common\Validator\Constraints\IsOdd" given
$this->assertNoViolation();
Expand All @@ -50,7 +50,7 @@ public function testNotValidNumber()
{
try {
$this->validator->validate('rr', new IsEven());
$this->assertFalse(true, 'Fail expect a exception for argument of type "int|float"');
$this->fail('Fail expect a exception for argument of type "int|float"');
} catch (Throwable $th) {
// -- Expected argument of type "int|float", "string" given
$this->assertNoViolation();
Expand Down
4 changes: 2 additions & 2 deletions tests/Validator/ContainsIsOddValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function testConstraintInvalid()
try
{
$this->validator->validate(5, new IsEven());
$this->assertFalse(true, 'Fail expect a exception for argument of Constrait not is correct');
$this->fail('Fail expect a exception for argument of Constraint not is correct');
}
catch (Throwable $th)
{
Expand All @@ -54,7 +54,7 @@ public function testNotValidNumber()
try
{
$this->validator->validate('rr', new IsOdd());
$this->assertFalse(true, 'Fail expect a exception for argument of type "int|float"');
$this->fail('Fail expect a exception for argument of type "int|float"');
}
catch (Throwable $th)
{
Expand Down

0 comments on commit 88f0317

Please sign in to comment.