Skip to content

Commit

Permalink
Revert to setExpectedException() method
Browse files Browse the repository at this point in the history
This enables to use the same testing set for <= PHP 5.5 and PHP 5.6 >=. We'll address this in a later stage where the method is entirely removed from phpunit.
  • Loading branch information
Propaganistas committed Dec 14, 2016
1 parent e6ef384 commit 226db5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PhoneValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 226db5f

Please sign in to comment.