diff --git a/tests/Configuration/ConfigurationTest.php b/tests/Configuration/ConfigurationTest.php index 86157239..2c19ac6d 100644 --- a/tests/Configuration/ConfigurationTest.php +++ b/tests/Configuration/ConfigurationTest.php @@ -14,10 +14,10 @@ namespace Humbug\PhpScoper\Configuration; +use Humbug\PhpScoper\Configuration\Throwable\InvalidConfigurationValue; use Humbug\PhpScoper\Patcher\FakePatcher; use Humbug\PhpScoper\Patcher\Patcher; use Humbug\PhpScoper\Patcher\PatcherChain; -use InvalidArgumentException; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; @@ -36,7 +36,7 @@ public function test_it_validates_the_prefix( string $prefix, string $expectedExceptionMessage ): void { - $this->expectException(InvalidArgumentException::class); + $this->expectException(InvalidConfigurationValue::class); $this->expectExceptionMessage($expectedExceptionMessage); new Configuration(