New PHP tests

This commit is contained in:
Uwe Tews
2015-05-23 18:49:27 +02:00
parent e3c82a8f06
commit cb31ef2df1
11 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
--><% echo 'hello world ';
echo '<% ';
echo '%> ';
%><--

View File

@@ -0,0 +1,5 @@
--><?php echo ' hello world ';
echo '<?php ';
echo '?> ';
$foo = 3;
?><--

View File

@@ -0,0 +1,4 @@
--><? echo ' hello world ';
echo '<? ';
echo '?> ';
?><--

View File

@@ -0,0 +1,16 @@
--><?php echo ' hello world ';
/*
* comment <?php is okay
*
* comment <?php once again
*/
echo '<?php ';
/*
* other comment <% foo
*/
echo '?> ';
$foo = 3;
?><--

View File

@@ -0,0 +1,12 @@
--><?php echo ' hello world ';
// comment <?php is okay
//
// comment <?php once again
echo '<?php ';
// other comment <% foo
echo '?> ';
$foo = 3;
?><--

View File

@@ -0,0 +1,5 @@
-->{php} echo ' hello world ';
echo '{php} ';
echo '{/php} ';
$foo = 3;
{/php}<--

View File

@@ -0,0 +1,16 @@
-->{php} echo ' hello world ';
/*
* comment {/php} is okay
*
* comment {/php} once again {/php} foo
*/
echo '{php} ';
/*
* other comment <% foo
*/
echo '{/php} ';
$foo = 3;
{/php}<--

View File

@@ -0,0 +1,12 @@
-->{php} echo ' hello world ';
// comment {/php} is okay
//
// comment {/php} once again {/php} foo
echo '{php} ';
// other comment <% foo
echo '{/php} ';
$foo = 3;
{/php}<--

View File

@@ -0,0 +1,5 @@
-->{ php} echo ' hello world ';
echo 'foo ';
echo 'bar ';
$foo = 3;
{ /php}<--

View File

@@ -0,0 +1,2 @@
-->{php nocache} echo $_smarty_tpl->getTemplateVars('foo');
{/php}<--

View File

@@ -0,0 +1,5 @@
--><script language='php'>
echo ' hello world ';
echo '<script language=\'php\'> ';
echo '</script> ';
</script><--