From 9a72d221a34554d11df89827fff8cf24fd636309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sat, 15 Jun 2024 13:28:20 +0200 Subject: [PATCH] fix --- tests/Configuration/ConfigurationFactoryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Configuration/ConfigurationFactoryTest.php b/tests/Configuration/ConfigurationFactoryTest.php index 3722ee63..2902dafc 100644 --- a/tests/Configuration/ConfigurationFactoryTest.php +++ b/tests/Configuration/ConfigurationFactoryTest.php @@ -15,6 +15,7 @@ namespace Humbug\PhpScoper\Configuration; use Fidry\FileSystem\FS; +use Humbug\PhpScoper\Configuration\Throwable\UnknownConfigurationKey; use Humbug\PhpScoper\Container; use Humbug\PhpScoper\FileSystemTestCase; use Humbug\PhpScoper\Patcher\ComposerPatcher; @@ -23,7 +24,6 @@ use Humbug\PhpScoper\Patcher\SymfonyPatcher; use Humbug\PhpScoper\Symbol\NamespaceRegistry; use Humbug\PhpScoper\Symbol\SymbolRegistry; -use InvalidArgumentException; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\Group; use function array_keys; @@ -80,7 +80,7 @@ public function test_it_cannot_create_a_configuration_with_an_invalid_key(): voi PHP, ); - $this->expectException(InvalidArgumentException::class); + $this->expectException(UnknownConfigurationKey::class); $this->expectExceptionMessage('Invalid configuration key value "unknown key" found.'); $this->createConfigFromStandardFile();