fix failing testLogError

This commit is contained in:
mathieu strauch 2014-08-24 15:46:44 +02:00
parent f0f1531fac
commit 85cd11384a

View file

@ -946,7 +946,7 @@ EXPECTED;
if (php_sapi_name() === 'cli') { if (php_sapi_name() === 'cli') {
$expected = sprintf($expectedText, str_replace(CAKE_CORE_INCLUDE_PATH, '', __FILE__), __LINE__ - 18); $expected = sprintf($expectedText, str_replace(CAKE_CORE_INCLUDE_PATH, '', __FILE__), __LINE__ - 18);
} else { } else {
$expected = sprintf($expectedHtml, str_replace(CAKE_CORE_INCLUDE_PATH, '', __FILE__), __LINE__ - 19); $expected = sprintf($expectedHtml, str_replace(CAKE_CORE_INCLUDE_PATH, '', __FILE__), __LINE__ - 20);
} }
$this->assertEquals($expected, $result); $this->assertEquals($expected, $result);