Permalink
Browse files

Fixing failing test.

  • Loading branch information...
1 parent 149deba commit dbf801b9d4ffc6b0f817a36b9766bc3a9630dd60 @markstory markstory committed Sep 4, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Cake/Test/Case/Utility/DebuggerTest.php
@@ -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));

0 comments on commit dbf801b

Please sign in to comment.