From cee46f5ee3dcf0c5b6fbfe8826f8d7800f094535 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sun, 15 May 2011 00:22:39 -0430 Subject: [PATCH] Fixing debug tests --- lib/Cake/Test/Case/BasicsTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/BasicsTest.php b/lib/Cake/Test/Case/BasicsTest.php index 1a95cda54..6866d03d5 100644 --- a/lib/Cake/Test/Case/BasicsTest.php +++ b/lib/Cake/Test/Case/BasicsTest.php @@ -678,7 +678,7 @@ class BasicsTest extends CakeTestCase { ob_start(); debug('this-is-a-test'); $result = ob_get_clean(); - $pattern = '/(.+?tests(\/|\\\)Case(\/|\\\)BasicsTest\.php|'; + $pattern = '/(.+?Test(\/|\\\)Case(\/|\\\)BasicsTest\.php|'; $pattern .= preg_quote(substr(__FILE__, 1), '/') . ')'; $pattern .= '.*line.*' . (__LINE__ - 4) . '.*this-is-a-test.*/s'; $this->assertPattern($pattern, $result); @@ -686,7 +686,7 @@ class BasicsTest extends CakeTestCase { ob_start(); debug('
this-is-a-test
', true); $result = ob_get_clean(); - $pattern = '/(.+?tests(\/|\\\)Case(\/|\\\)BasicsTest\.php|'; + $pattern = '/(.+?Test(\/|\\\)Case(\/|\\\)BasicsTest\.php|'; $pattern .= preg_quote(substr(__FILE__, 1), '/') . ')'; $pattern .= '.*line.*' . (__LINE__ - 4) . '.*<div>this-is-a-test<\/div>.*/s'; $this->assertPattern($pattern, $result); @@ -694,7 +694,7 @@ class BasicsTest extends CakeTestCase { ob_start(); debug('
this-is-a-test
', false); $result = ob_get_clean(); - $pattern = '/(.+?tests(\/|\\\)Case(\/|\\\)BasicsTest\.php|'; + $pattern = '/(.+?Test(\/|\\\)Case(\/|\\\)BasicsTest\.php|'; $pattern .= preg_quote(substr(__FILE__, 1), '/') . ')'; $pattern .= '.*line.*' . (__LINE__ - 4) . '.*\this-is-a-test\<\/div\>.*/s'; $this->assertPattern($pattern, $result);