Fix broken tests

This commit is contained in:
ADmad 2013-02-08 19:04:41 +05:30
parent a3702fcf2b
commit 431e610317
2 changed files with 2 additions and 2 deletions

View file

@ -149,7 +149,7 @@ class ExtractTaskTest extends CakeTestCase {
$this->assertRegExp($pattern, $result); $this->assertRegExp($pattern, $result);
$pattern = '/\#: (\\\\|\/)extract\.ctp:14\n'; $pattern = '/\#: (\\\\|\/)extract\.ctp:14\n';
$pattern .= '\#: (\\\\|\/)home\.ctp:99\n'; $pattern .= '\#: (\\\\|\/)home\.ctp:100\n';
$pattern .= 'msgid "Editing this Page"\nmsgstr ""/'; $pattern .= 'msgid "Editing this Page"\nmsgstr ""/';
$this->assertRegExp($pattern, $result); $this->assertRegExp($pattern, $result);

View file

@ -88,7 +88,7 @@ class DebuggerTest extends CakeTestCase {
$pattern = '/<code>.*?<span style\="color\: \#\d+">.*?&lt;\?php/'; $pattern = '/<code>.*?<span style\="color\: \#\d+">.*?&lt;\?php/';
$this->assertRegExp($pattern, $result[0]); $this->assertRegExp($pattern, $result[0]);
$result = Debugger::excerpt(__FILE__, 10, 2); $result = Debugger::excerpt(__FILE__, 11, 2);
$this->assertEquals(5, count($result)); $this->assertEquals(5, count($result));
$pattern = '/<span style\="color\: \#\d{6}">\*<\/span>/'; $pattern = '/<span style\="color\: \#\d{6}">\*<\/span>/';