diff --git a/lib/Cake/Test/Case/Utility/DebuggerTest.php b/lib/Cake/Test/Case/Utility/DebuggerTest.php index 4179a7636..6705b5791 100644 --- a/lib/Cake/Test/Case/Utility/DebuggerTest.php +++ b/lib/Cake/Test/Case/Utility/DebuggerTest.php @@ -155,6 +155,24 @@ class DebuggerTest extends CakeTestCase { $this->assertContains('$wrong = ''', $result[3], 'Context should be HTML escaped.'); } +/** + * test encodes error messages + * + * @return void + */ + public function testOutputEncodeDescription() { + set_error_handler('Debugger::showError'); + $this->_restoreError = true; + + ob_start(); + $a = array(); + $b = $a['']; + $result = ob_get_clean(); + + $this->assertNotContains('