Skip to content

Commit

Permalink
Correcting minor test case incompatibility with XDebug 2.4.x
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ocramius committed Dec 11, 2015
1 parent 84f2bf7 commit 342ab2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ public function testWillShowQuery()
))
);

$this->assertStringMatchesFormat('string%sSELECT %a', $this->tester->getDisplay());
$this->assertStringMatchesFormat('%Astring%sSELECT %a', $this->tester->getDisplay());
}
}

0 comments on commit 342ab2f

Please sign in to comment.