summaryrefslogtreecommitdiff
path: root/t/t4018
diff options
context:
space:
mode:
authorKana Natsuno <dev@whileimautomaton.net>2018-07-03 13:15:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-06 21:56:42 (GMT)
commit9992fbd7a1fdcc8fbaf0973a18d0eca94e1b7638 (patch)
tree2b0ec10362278fe194ec5b3437cd2989a5df0c34 /t/t4018
parente3331758f12da22f4103eec7efe1b5304a9be5e9 (diff)
downloadgit-9992fbd7a1fdcc8fbaf0973a18d0eca94e1b7638.zip
git-9992fbd7a1fdcc8fbaf0973a18d0eca94e1b7638.tar.gz
git-9992fbd7a1fdcc8fbaf0973a18d0eca94e1b7638.tar.bz2
t4018: add missing test cases for PHP
A later patch changes the built-in PHP pattern. These test cases demonstrate aspects of the pattern that we do not want to change. Signed-off-by: Kana Natsuno <dev@whileimautomaton.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018')
-rw-r--r--t/t4018/php-class4
-rw-r--r--t/t4018/php-function4
-rw-r--r--t/t4018/php-method7
3 files changed, 15 insertions, 0 deletions
diff --git a/t/t4018/php-class b/t/t4018/php-class
new file mode 100644
index 0000000..7785b63
--- /dev/null
+++ b/t/t4018/php-class
@@ -0,0 +1,4 @@
+class RIGHT
+{
+ const FOO = 'ChangeMe';
+}
diff --git a/t/t4018/php-function b/t/t4018/php-function
new file mode 100644
index 0000000..35717c5
--- /dev/null
+++ b/t/t4018/php-function
@@ -0,0 +1,4 @@
+function RIGHT()
+{
+ return 'ChangeMe';
+}
diff --git a/t/t4018/php-method b/t/t4018/php-method
new file mode 100644
index 0000000..03af1a6
--- /dev/null
+++ b/t/t4018/php-method
@@ -0,0 +1,7 @@
+class Klass
+{
+ public static function RIGHT()
+ {
+ return 'ChangeMe';
+ }
+}