diff --git a/tests/Doctrine/Tests/ORM/EntityManagerTest.php b/tests/Doctrine/Tests/ORM/EntityManagerTest.php index ec7f1301f..d0cf2bcbb 100644 --- a/tests/Doctrine/Tests/ORM/EntityManagerTest.php +++ b/tests/Doctrine/Tests/ORM/EntityManagerTest.php @@ -211,7 +211,7 @@ class EntityManagerTest extends OrmTestCase public function testCreateInvalidConnection() { $this->expectException(\InvalidArgumentException::class); - $this->expectExceptionMessageRegExp('/^Invalid \$connection argument of type integer given: \"1\".$/'); + $this->expectExceptionMessage('Invalid $connection argument of type integer given: "1".'); $config = new Configuration(); $config->setMetadataDriverImpl($this->createMock(MappingDriver::class));