PHP: Add strings tests

This commit is contained in:
Colomban Wendling 2013-08-09 00:59:20 +02:00
parent a114d1c3e2
commit 0101365b1f
3 changed files with 34 additions and 0 deletions

View File

@ -221,6 +221,7 @@ test_sources = \
state_machine.v \ state_machine.v \
static_array.c \ static_array.c \
stdcall.f \ stdcall.f \
strings.php \
strings.rb \ strings.rb \
structure.f \ structure.f \
tabindent.py \ tabindent.py \

24
tests/ctags/strings.php Normal file
View File

@ -0,0 +1,24 @@
<?php
$a = "hello";
$b = 'hello';
$c = "hello \"buddy\"";
$d = 'hello \'buddy\'';
$e = <<<EOS
hello buddy
EOS;
$f = <<<'EOS'
hello buddy
EOS;
$g = <<<"EOS"
hello buddy
EOS;
# just to check we're correctly out of a string here
$zzz_end = 42;

View File

@ -0,0 +1,9 @@
# format=tagmanager
aÌ16384Ö0
bÌ16384Ö0
cÌ16384Ö0
dÌ16384Ö0
eÌ16384Ö0
fÌ16384Ö0
gÌ16384Ö0
zzz_endÌ16384Ö0