From 493d5e61e1092c826b99c74b6d7281687beac23d Mon Sep 17 00:00:00 2001 From: the_undefined Date: Thu, 8 May 2008 13:19:38 +0000 Subject: [PATCH] Allowed whitespace in front of opening tags git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6772 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/lib/cake_test_case.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {