mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +02:00
[ticket/10882] Add test for an ENDIF without IF.
PHPBB3-10882
This commit is contained in:
parent
9a38a034e5
commit
720d07c9b3
@ -22,6 +22,18 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
array(),
|
||||
'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…
x
Reference in New Issue
Block a user