From 69afeb08af445a55bf78e52b7f3ed68183267eee Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 12 Dec 2016 21:28:20 -0500 Subject: [PATCH] Skip error encoding test in PHP5.3 Index errors work funny in PHP5.3, which makes testing them not work like other versions of PHP. --- lib/Cake/Test/Case/Utility/DebuggerTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Cake/Test/Case/Utility/DebuggerTest.php b/lib/Cake/Test/Case/Utility/DebuggerTest.php index 3528ce5f7..ae79ec3d4 100644 --- a/lib/Cake/Test/Case/Utility/DebuggerTest.php +++ b/lib/Cake/Test/Case/Utility/DebuggerTest.php @@ -161,6 +161,7 @@ class DebuggerTest extends CakeTestCase { * @return void */ public function testOutputEncodeDescription() { + $this->skipIf(version_compare(PHP_VERSION, '5.4.0', '<'), 'Index errors are different in PHP 5.3'); set_error_handler('Debugger::showError'); $this->_restoreError = true;