diff options
author | Nuno Lopes <nlopess@php.net> | 2008-07-08 14:38:31 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2008-07-08 14:38:31 +0000 |
commit | 29e7475124f3837d72b379581ed7a23ce2077bc1 (patch) | |
tree | 22826d3aa8bc5cf7c72715a5362f0f0c0898fb72 /tests | |
parent | 64ba428eab1c9ef1512b5052e90ba03995c5970d (diff) | |
download | php-git-29e7475124f3837d72b379581ed7a23ce2077bc1.tar.gz |
add more tests for the parser. currently both fail
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/comments.phpt | 2 | ||||
-rw-r--r-- | tests/lang/comments2.phpt | 9 | ||||
-rw-r--r-- | tests/lang/script_tag.phpt | 17 |
3 files changed, 27 insertions, 1 deletions
diff --git a/tests/lang/comments.phpt b/tests/lang/comments.phpt index 682366ec27..365beffdd7 100644 --- a/tests/lang/comments.phpt +++ b/tests/lang/comments.phpt @@ -16,7 +16,7 @@ echo "e este, # hein?"; echo "\n"; ?> ---EXPECTF-- +--EXPECT-- #teste2 #ola uhm # ah diff --git a/tests/lang/comments2.phpt b/tests/lang/comments2.phpt new file mode 100644 index 0000000000..8d727d91d0 --- /dev/null +++ b/tests/lang/comments2.phpt @@ -0,0 +1,9 @@ +--TEST-- +#-style comments (part 2) +--FILEEOF-- +<?php +if (1) { +?> +#<?php } +--EXPECT-- +# diff --git a/tests/lang/script_tag.phpt b/tests/lang/script_tag.phpt new file mode 100644 index 0000000000..1b5c696295 --- /dev/null +++ b/tests/lang/script_tag.phpt @@ -0,0 +1,17 @@ +--TEST-- +<script> tag +--FILE-- +<script language=php> echo "ola\n";</script> +<script language="php"> echo "ola2\n";</script> +<script language='php'> echo "ola3\n";</script> +texto <sc <s <script> <script language> <script language=> +<script language=php> +#comment +echo "oi\n"; //ignore here +# 2nd comment +--EXPECT-- +ola +ola2 +ola3 +texto <sc <s <script> <script language> <script language=> +oi |