diff --git a/cake/tests/lib/cake_test_case.php b/cake/tests/lib/cake_test_case.php index b60acbcea..7701f5a32 100644 --- a/cake/tests/lib/cake_test_case.php +++ b/cake/tests/lib/cake_test_case.php @@ -491,7 +491,7 @@ class CakeTestCase extends UnitTestCase { foreach ($tags as $tag => $attributes) { $regex[] = array( sprintf('Open %s tag', $tag), - sprintf('<%s', preg_quote($tag, '/')), + sprintf('[\s]*<%s', preg_quote($tag, '/')), $i, ); if ($attributes === true) {