mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 11:58:53 +00:00
[ticket/10882] Add test for an ENDIF without IF.
PHPBB3-10882
This commit is contained in:
parent
9a38a034e5
commit
720d07c9b3
3 changed files with 14 additions and 0 deletions
|
@ -22,6 +22,18 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||||
array(),
|
array(),
|
||||||
'invalid/output/unknown_tag.html',
|
'invalid/output/unknown_tag.html',
|
||||||
),
|
),
|
||||||
|
/*
|
||||||
|
* Produces a parse error which is fatal, therefore
|
||||||
|
* destroying the test suite.
|
||||||
|
array(
|
||||||
|
'ENDIF without IF',
|
||||||
|
'invalid/endif_without_if.html',
|
||||||
|
array(),
|
||||||
|
array(),
|
||||||
|
array(),
|
||||||
|
'invalid/output/endif_without_if.html',
|
||||||
|
),
|
||||||
|
*/
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
tests/template/templates/invalid/endif_without_if.html
Normal file
1
tests/template/templates/invalid/endif_without_if.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<!-- ENDIF -->
|
|
@ -0,0 +1 @@
|
||||||
|
Parse error (fatal, destroys php runtime).
|
Loading…
Add table
Reference in a new issue