Fixing failing test.

This commit is contained in:
mark_story 2011-09-04 01:06:00 +01:00
parent 149deba416
commit dbf801b9d4

View file

@ -89,9 +89,8 @@ class DebuggerTest extends CakeTestCase {
$this->assertTrue(is_array($result));
$this->assertEqual(count($result), 4);
$expected = '<code><span style="color: #000000">&lt;?php';
$expected .= '</span></code>';
$this->assertEqual($result[0], $expected);
$pattern = '/<code><span style\="color\: \#\d+">.*?&lt;\?php/';
$this->assertRegExp($pattern, $result[0]);
$return = Debugger::excerpt('[internal]', 2, 2);
$this->assertTrue(empty($return));