diff --git a/tests/PhoneValidatorTest.php b/tests/PhoneValidatorTest.php index 4e80880..301bfec 100644 --- a/tests/PhoneValidatorTest.php +++ b/tests/PhoneValidatorTest.php @@ -347,7 +347,7 @@ public function testValidatePhoneLenient() public function testValidatePhoneFaultyParameters() { - $this->expectException('Propaganistas\LaravelPhone\Exceptions\InvalidParameterException'); + $this->setExpectedException('Propaganistas\LaravelPhone\Exceptions\InvalidParameterException'); // Validator with given country, correct type, faulty parameter. $this->performValidation([