Skip to content

Commit 9992fbd

Browse files
kanagitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e333175 commit 9992fbd

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

t/t4018/php-class

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class RIGHT
2+
{
3+
const FOO = 'ChangeMe';
4+
}

t/t4018/php-function

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function RIGHT()
2+
{
3+
return 'ChangeMe';
4+
}

t/t4018/php-method

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Klass
2+
{
3+
public static function RIGHT()
4+
{
5+
return 'ChangeMe';
6+
}
7+
}

0 commit comments

Comments
 (0)