From 6e3ce26429b4309f311a0ea7d77997639c26c0a5 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 11 Dec 2015 19:15:48 +0100 Subject: [PATCH] Correcting minor test case incompatibility with XDebug 2.4.x In PHP 5.x + XDebug < 2.4, the output would be "string:..." In PHP 7.x + XDebug >= 2.4, the output would be "the/file/name.php:11:string:..." This is an improvement in XDebug that is quite annoying for our purposes, but is actually welcome to most users anyway. This commit simply fixes that incompatibility --- .../Tests/ORM/Tools/Console/Command/RunDqlCommandTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/ORM/Tools/Console/Command/RunDqlCommandTest.php b/tests/Doctrine/Tests/ORM/Tools/Console/Command/RunDqlCommandTest.php index 00aeea3a8..8a78e4970 100644 --- a/tests/Doctrine/Tests/ORM/Tools/Console/Command/RunDqlCommandTest.php +++ b/tests/Doctrine/Tests/ORM/Tools/Console/Command/RunDqlCommandTest.php @@ -85,6 +85,6 @@ class RunDqlCommandTest extends OrmFunctionalTestCase )) ); - $this->assertStringMatchesFormat('string%sSELECT %a', $this->tester->getDisplay()); + $this->assertStringMatchesFormat('%Astring%sSELECT %a', $this->tester->getDisplay()); } }