[geany/geany] 010136: PHP: Add strings tests

Colomban Wendling git-noreply at xxxxx
Thu Aug 15 12:51:28 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Thu, 15 Aug 2013 12:51:28 UTC
Commit:      0101365b1f23a804ebfca875a31846d441a09ca4
             https://github.com/geany/geany/commit/0101365b1f23a804ebfca875a31846d441a09ca4

Log Message:
-----------
PHP: Add strings tests


Modified Paths:
--------------
    tests/ctags/Makefile.am
    tests/ctags/strings.php
    tests/ctags/strings.php.tags

Modified: tests/ctags/Makefile.am
1 files changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -221,6 +221,7 @@ test_sources = \
 	state_machine.v					\
 	static_array.c					\
 	stdcall.f						\
+	strings.php						\
 	strings.rb						\
 	structure.f						\
 	tabindent.py					\


Modified: tests/ctags/strings.php
24 files changed, 24 insertions(+), 0 deletions(-)
===================================================================
@@ -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;


Modified: tests/ctags/strings.php.tags
9 files changed, 9 insertions(+), 0 deletions(-)
===================================================================
@@ -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



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list