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>
This commit is contained in:
Kana Natsuno 2018-07-03 22:15:39 +09:00 committed by Junio C Hamano
parent e3331758f1
commit 9992fbd7a1
3 changed files with 15 additions and 0 deletions

4
t/t4018/php-class Normal file
View file

@ -0,0 +1,4 @@
class RIGHT
{
const FOO = 'ChangeMe';
}

4
t/t4018/php-function Normal file
View file

@ -0,0 +1,4 @@
function RIGHT()
{
return 'ChangeMe';
}

7
t/t4018/php-method Normal file
View file

@ -0,0 +1,7 @@
class Klass
{
public static function RIGHT()
{
return 'ChangeMe';
}
}