diff --git a/cake/tests/lib/cake_test_case.php b/cake/tests/lib/cake_test_case.php index 16a847684..b31a1338a 100644 --- a/cake/tests/lib/cake_test_case.php +++ b/cake/tests/lib/cake_test_case.php @@ -450,7 +450,10 @@ class CakeTestCase extends UnitTestCase { } } foreach ($normalized as $tags) { - if (is_string($tags)) { + if (is_string($tags) || (is_array($tags) && count($tags) == 1 && !empty($tags[0]))) { + if (is_array($tags)) { + $tags = $tags[0]; + } if ($tags{0} == '!') { $regex[] = '<[\s]*\/[\s]*'.substr($tags, 1).'[\s]*>'; continue;