Skip to content
Permalink
Browse files

Update basics test for debug() changes.

  • Loading branch information...
predominant committed Dec 10, 2010
1 parent 1548b7b commit 0deaa6eee0e263e606a399c2e80ad0f9da27a84e
Showing with 9 additions and 1 deletion.
  1. +9 −1 cake/tests/cases/basics.test.php
@@ -686,12 +686,20 @@ public function testDebug() {
$this->assertPattern($pattern, $result);
ob_start();
debug('<div>this-is-a-test</div>', true);
debug('<div>this-is-a-test</div>');
$result = ob_get_clean();
$pattern = '/(.+?tests(\/|\\\)cases(\/|\\\)basics\.test\.php|';
$pattern .= preg_quote(substr(__FILE__, 1), '/') . ')';
$pattern .= '.*line.*' . (__LINE__ - 4) . '.*&lt;div&gt;this-is-a-test&lt;\/div&gt;.*/s';
$this->assertPattern($pattern, $result);
ob_start();
debug('<div>this-is-a-test</div>', false);
$result = ob_get_clean();
$pattern = '/(.+?tests(\/|\\\)cases(\/|\\\)basics\.test\.php|';
$pattern .= preg_quote(substr(__FILE__, 1), '/') . ')';
$pattern .= '.*line.*' . (__LINE__ - 4) . '.*\<div\>this-is-a-test\<\/div\>.*/s';
$this->assertPattern($pattern, $result);
}
/**

0 comments on commit 0deaa6e

Please sign in to comment.
You can’t perform that action at this time.