Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 60d83cb

Browse files
committed
New PHP tests
1 parent 213fb15 commit 60d83cb

File tree

11 files changed

+86
-0
lines changed

11 files changed

+86
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--><% echo 'hello world ';
2+
echo '<% ';
3+
echo '%> ';
4+
%><--
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--><?php echo ' hello world ';
2+
echo '<?php ';
3+
echo '?> ';
4+
$foo = 3;
5+
?><--
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--><? echo ' hello world ';
2+
echo '<? ';
3+
echo '?> ';
4+
?><--
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--><?php echo ' hello world ';
2+
/*
3+
* comment <?php is okay
4+
*
5+
* comment <?php once again
6+
*/
7+
8+
echo '<?php ';
9+
10+
/*
11+
* other comment <% foo
12+
*/
13+
14+
echo '?> ';
15+
$foo = 3;
16+
?><--
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--><?php echo ' hello world ';
2+
// comment <?php is okay
3+
//
4+
// comment <?php once again
5+
6+
echo '<?php ';
7+
8+
// other comment <% foo
9+
10+
echo '?> ';
11+
$foo = 3;
12+
?><--
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-->{php} echo ' hello world ';
2+
echo '{php} ';
3+
echo '{/php} ';
4+
$foo = 3;
5+
{/php}<--
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
-->{php} echo ' hello world ';
2+
/*
3+
* comment {/php} is okay
4+
*
5+
* comment {/php} once again {/php} foo
6+
*/
7+
8+
echo '{php} ';
9+
10+
/*
11+
* other comment <% foo
12+
*/
13+
14+
echo '{/php} ';
15+
$foo = 3;
16+
{/php}<--
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-->{php} echo ' hello world ';
2+
// comment {/php} is okay
3+
//
4+
// comment {/php} once again {/php} foo
5+
6+
echo '{php} ';
7+
8+
// other comment <% foo
9+
10+
echo '{/php} ';
11+
$foo = 3;
12+
{/php}<--
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-->{ php} echo ' hello world ';
2+
echo 'foo ';
3+
echo 'bar ';
4+
$foo = 3;
5+
{ /php}<--
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-->{php nocache} echo $_smarty_tpl->getTemplateVars('foo');
2+
{/php}<--

0 commit comments

Comments
 (0)