Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing failing test.
  • Loading branch information
markstory committed Sep 4, 2011
1 parent 149deba commit dbf801b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Cake/Test/Case/Utility/DebuggerTest.php
Expand Up @@ -89,9 +89,8 @@ public function testExcerpt() {
$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));
Expand Down

0 comments on commit dbf801b

Please sign in to comment.