diff --git a/composer.json b/composer.json index d7a4efe..5a9f12b 100644 --- a/composer.json +++ b/composer.json @@ -13,8 +13,7 @@ "php": "^8.1", "guzzlehttp/guzzle": "^7.0", "kevinrob/guzzle-cache-middleware": "^5.0 || ^6.0 || ^7.0", - "phpdocumentor/reflection-docblock": "^5.2", - "propaganistas/laravel-phone": "^5.3", + "propaganistas/laravel-phone": "^5.3|^6.0", "psr/http-message": "^1.1|^2.0", "supportpal/eloquent-model": "^1.1", "symfony/cache": "^6.2|^7.2", @@ -23,7 +22,7 @@ "symfony/yaml": "^6.2|^7.0" }, "require-dev": { - "brianium/paratest": "^4.0|^5.0|^6.0", + "brianium/paratest": "^6.0", "jangregor/phpstan-prophecy": "2.2.0", "larapack/dd": "^1.1", "phpmd/phpmd": "^2.9", diff --git a/test/Unit/Model/User/Request/CreateUserTest.php b/test/Unit/Model/User/Request/CreateUserTest.php index 39e2669..fff405e 100644 --- a/test/Unit/Model/User/Request/CreateUserTest.php +++ b/test/Unit/Model/User/Request/CreateUserTest.php @@ -2,7 +2,7 @@ namespace SupportPal\ApiClient\Tests\Unit\Model\User\Request; -use Propaganistas\LaravelPhone\Exceptions\NumberParseException; +use libphonenumber\NumberParseException; use SupportPal\ApiClient\Model\User\Request\CreateUser; use SupportPal\ApiClient\Tests\Unit\Model\BaseModelTest; @@ -35,21 +35,18 @@ public function testSetPhoneNumber(): void public function testSetPhoneNumberInvalidNumber(): void { $this->expectException(NumberParseException::class); - $this->expectExceptionMessage('Number does not match the provided country.'); $this->model->setPhoneNumber('14+%595', 'US'); } public function testSetPhoneNumberCountryRequired(): void { $this->expectException(NumberParseException::class); - $this->expectExceptionMessage('Number requires a country to be specified.'); $this->model->setPhoneNumber('123456789'); } public function testSetPhoneNumberInvalidCountry(): void { $this->expectException(NumberParseException::class); - $this->expectExceptionMessage('Number does not match the provided country.'); $this->model->setPhoneNumber('2323247465753', 'GB'); }