mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/11482] Unit tests for advanced DEFINE
Unit tests for advanced DEFINE and ENDDEFINE PHPBB3-11482
This commit is contained in:
@@ -7,5 +7,3 @@
|
||||
{$VALUE}
|
||||
<!-- UNDEFINE $VALUE -->
|
||||
{$VALUE}
|
||||
<!-- DEFINE $VALUE -->
|
||||
|
||||
|
12
tests/template/templates/define_advanced.html
Normal file
12
tests/template/templates/define_advanced.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!-- DEFINE $VALUE -->
|
||||
abc
|
||||
<!-- ENDDEFINE -->
|
||||
{$VALUE}
|
||||
<!-- DEFINE $VALUE1 -->
|
||||
bcd
|
||||
<!-- ENDDEFINE -->
|
||||
<!-- DEFINE $VALUE2 -->
|
||||
cde
|
||||
<!-- ENDDEFINE -->
|
||||
<!-- INCLUDE define_include2.html -->
|
||||
{$INCLUDED_VALUE3}
|
11
tests/template/templates/define_include2.html
Normal file
11
tests/template/templates/define_include2.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- DEFINE $INCLUDED_VALUE1 -->
|
||||
zxc
|
||||
<!-- ENDDEFINE -->
|
||||
<!-- DEFINE $INCLUDED_VALUE2 -->
|
||||
qwe
|
||||
<!-- ENDDEFINE -->
|
||||
{$INCLUDED_VALUE1}
|
||||
<!-- DEFINE $INCLUDED_VALUE3 -->
|
||||
{$VALUE2}
|
||||
{$VALUE1}
|
||||
<!-- ENDDEFINE -->
|
2
tests/template/templates/define_unclosed.html
Normal file
2
tests/template/templates/define_unclosed.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- DEFINE $VALUE -->
|
||||
test
|
Reference in New Issue
Block a user