1
0
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:
Oleg Pudeyev 2012-05-10 03:28:54 -04:00
parent 9a38a034e5
commit 720d07c9b3
3 changed files with 14 additions and 0 deletions

View File

@ -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',
),
*/
);
}

View File

@ -0,0 +1 @@
<!-- ENDIF -->

View File

@ -0,0 +1 @@
Parse error (fatal, destroys php runtime).