t4018: add missing test cases for PHP
authorKana Natsuno <dev@whileimautomaton.net>
Tue, 3 Jul 2018 13:15:39 +0000 (22:15 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Jul 2018 21:56:42 +0000 (14:56 -0700)
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>
t/t4018/php-class [new file with mode: 0644]
t/t4018/php-function [new file with mode: 0644]
t/t4018/php-method [new file with mode: 0644]
diff --git a/t/t4018/php-class b/t/t4018/php-class
new file mode 100644 (file)
index 0000000..7785b63
--- /dev/null
@@ -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 (file)
index 0000000..35717c5
--- /dev/null
@@ -0,0 +1,4 @@
+function RIGHT()
+{
+    return 'ChangeMe';
+}
diff --git a/t/t4018/php-method b/t/t4018/php-method
new file mode 100644 (file)
index 0000000..03af1a6
--- /dev/null
@@ -0,0 +1,7 @@
+class Klass
+{
+    public static function RIGHT()
+    {
+        return 'ChangeMe';
+    }
+}