mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-18 14:31:19 +02:00
More tests
git-svn-id: file:///svn/phpbb/trunk@9100 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
3
tests/template/templates/_dummy_include.php
Normal file
3
tests/template/templates/_dummy_include.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
echo "testing included php";
|
@@ -8,6 +8,7 @@
|
||||
|
||||
<!-- IF 32 is odd -->fail<!-- ELSE -->pass<!-- ENDIF -->
|
||||
|
||||
<!-- IF 32 is div by 16 -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
||||
<!-- IF 24 == 24 -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
||||
@@ -83,3 +84,5 @@
|
||||
<!-- IF 6 % 4 == 2 -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
||||
<!-- IF 24 mod 12 == 0 -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
||||
<!-- IF not (43 > 53) -->pass<!-- ELSE -->fail<!-- ENDIF -->
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<!-- IF S_VALUE -->
|
||||
1
|
||||
<!-- ELSEIF S_OTHER_VALUE -->
|
||||
2
|
||||
<!-- ELSE -->
|
||||
0
|
||||
<!-- ENDIF -->
|
||||
|
1
tests/template/templates/includephp.html
Normal file
1
tests/template/templates/includephp.html
Normal file
@@ -0,0 +1 @@
|
||||
<!-- INCLUDEPHP _dummy_include.php -->
|
@@ -9,10 +9,15 @@
|
||||
|
||||
{loop.VARIABLE}
|
||||
|
||||
<!-- IF loop.VARIABLE -->set<!-- ENDIF -->
|
||||
|
||||
<!-- IF loop.S_LAST_ROW -->last<!-- ENDIF -->
|
||||
<!-- BEGIN inner -->
|
||||
|
||||
{inner.S_ROW_NUM}
|
||||
|
||||
<!-- IF inner.S_LAST_ROW and inner.S_ROW_NUM and inner.S_NUM_ROWS -->last inner<!-- ENDIF -->
|
||||
|
||||
<!-- END inner -->
|
||||
<!-- END loop -->
|
||||
<!-- IF .loop.inner -->inner loop<!-- ENDIF -->
|
||||
|
1
tests/template/templates/php.html
Normal file
1
tests/template/templates/php.html
Normal file
@@ -0,0 +1 @@
|
||||
<!-- PHP -->echo "test";<!-- ENDPHP -->
|
Reference in New Issue
Block a user