diff --git a/tests/Validator/ContainsIsEvenValidatorTest.php b/tests/Validator/ContainsIsEvenValidatorTest.php index 5202b1e..52df10e 100644 --- a/tests/Validator/ContainsIsEvenValidatorTest.php +++ b/tests/Validator/ContainsIsEvenValidatorTest.php @@ -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(); @@ -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(); diff --git a/tests/Validator/ContainsIsOddValidatorTest.php b/tests/Validator/ContainsIsOddValidatorTest.php index 648e5a3..c3a296b 100644 --- a/tests/Validator/ContainsIsOddValidatorTest.php +++ b/tests/Validator/ContainsIsOddValidatorTest.php @@ -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) { @@ -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) {