mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Allowing multiple closing tags of the same type for assertTags()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6724 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
fae3b0386a
commit
2902969504
1 changed files with 4 additions and 1 deletions
|
@ -450,7 +450,10 @@ class CakeTestCase extends UnitTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ($normalized as $tags) {
|
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} == '!') {
|
if ($tags{0} == '!') {
|
||||||
$regex[] = '<[\s]*\/[\s]*'.substr($tags, 1).'[\s]*>';
|
$regex[] = '<[\s]*\/[\s]*'.substr($tags, 1).'[\s]*>';
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue