From d2643eeb8b445ad8a18982121833c29b2c3757d8 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 18 Nov 2016 09:19:27 +0100 Subject: [PATCH] #6136 Removed regex assertion - constant assertion is sufficient --- tests/Doctrine/Tests/ORM/EntityManagerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));