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>

Kana Natsuno committed Jul 3, 2018 at 22:15 UTC 9992fbd7a1fdcc8fbaf0973a18d0eca94e1b7638
3 files changed +15
t/t4018/php-class new
+4
@@ -0,0 +1,4 @@
1 +class RIGHT
2 +{
3 + const FOO = 'ChangeMe';
4 +}
t/t4018/php-function new
+4
@@ -0,0 +1,4 @@
1 +function RIGHT()
2 +{
3 + return 'ChangeMe';
4 +}
t/t4018/php-method new
+7
@@ -0,0 +1,7 @@
1 +class Klass
2 +{
3 + public static function RIGHT()
4 + {
5 + return 'ChangeMe';
6 + }
7 +}