diff --git a/tests/Doctrine/Tests/DBAL/Functional/Schema/MySqlSchemaManagerTest.php b/tests/Doctrine/Tests/DBAL/Functional/Schema/MySqlSchemaManagerTest.php index cd2ed4dfb3e..55ffc4766c9 100644 --- a/tests/Doctrine/Tests/DBAL/Functional/Schema/MySqlSchemaManagerTest.php +++ b/tests/Doctrine/Tests/DBAL/Functional/Schema/MySqlSchemaManagerTest.php @@ -3,7 +3,6 @@ namespace Doctrine\Tests\DBAL\Functional\Schema; use DateTime; -use Doctrine\DBAL\Exception\InvalidArgumentException; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\MariaDb1027Platform; use Doctrine\DBAL\Platforms\MySqlPlatform; @@ -14,6 +13,7 @@ use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Types\Types; use Doctrine\Tests\Types\MySqlPointType; +use InvalidArgumentException; use function array_keys; @@ -261,7 +261,7 @@ public function testAlterTableExplicitColumnPositionColumnNotFoundException(): v $diff->toTable = $table2WithoutAColumn; $this->expectException(InvalidArgumentException::class); - $this->expectExceptionMessageMatches('~Column name "a" not found'); + $this->expectExceptionMessage('Column name "a" not found'); $this->schemaManager->alterTable($diff); }