From 431e610317513d5d20bd91cf2c8198be9a197edc Mon Sep 17 00:00:00 2001 From: ADmad Date: Fri, 8 Feb 2013 19:04:41 +0530 Subject: [PATCH] Fix broken tests --- lib/Cake/Test/Case/Console/Command/Task/ExtractTaskTest.php | 2 +- lib/Cake/Test/Case/Utility/DebuggerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Console/Command/Task/ExtractTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/ExtractTaskTest.php index a10152fc5..d325308d0 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/ExtractTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/ExtractTaskTest.php @@ -149,7 +149,7 @@ class ExtractTaskTest extends CakeTestCase { $this->assertRegExp($pattern, $result); $pattern = '/\#: (\\\\|\/)extract\.ctp:14\n'; - $pattern .= '\#: (\\\\|\/)home\.ctp:99\n'; + $pattern .= '\#: (\\\\|\/)home\.ctp:100\n'; $pattern .= 'msgid "Editing this Page"\nmsgstr ""/'; $this->assertRegExp($pattern, $result); diff --git a/lib/Cake/Test/Case/Utility/DebuggerTest.php b/lib/Cake/Test/Case/Utility/DebuggerTest.php index f7cc9d580..791285f38 100644 --- a/lib/Cake/Test/Case/Utility/DebuggerTest.php +++ b/lib/Cake/Test/Case/Utility/DebuggerTest.php @@ -88,7 +88,7 @@ class DebuggerTest extends CakeTestCase { $pattern = '/.*?.*?<\?php/'; $this->assertRegExp($pattern, $result[0]); - $result = Debugger::excerpt(__FILE__, 10, 2); + $result = Debugger::excerpt(__FILE__, 11, 2); $this->assertEquals(5, count($result)); $pattern = '/\*<\/span>/';