Skip to content

Commit 1fd7fd8

Browse files
committed
Fix Atributes test cases
1 parent 532788a commit 1fd7fd8

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

tests/8.0/attribute/class.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
# Comment
4+
5+
#[ExampleAttribute]
6+
#[Attr1, Attr2]
7+
class Klass
8+
{
9+
#[ExampleAttribute]
10+
function f1() { }
11+
12+
#[WithoutArgument]
13+
#[SingleArgument(0)]
14+
#[FewArguments('Hello', 'World')]
15+
function foo() {}
16+
17+
#[WithoutArgument] #[SingleArgument(0)] #[FewArguments('Hello', 'World')]
18+
function bar() {}
19+
20+
#[Attr2("foo"), Attr2("bar")]
21+
function buz() {}
22+
}

tests/8.0/attribute/function.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
<<ExampleAttribute>>
3+
#[ExampleAttribute]
44
function f1() { }
55

6-
<<WithoutArgument>>
7-
<<SingleArgument(0)>>
8-
<<FewArguments('Hello', 'World')>>
6+
#[WithoutArgument]
7+
#[SingleArgument(0)]
8+
#[FewArguments('Hello', 'World')]
99
function foo() {}
1010

11-
<<WithoutArgument>><<SingleArgument(0)>><<FewArguments('Hello', 'World')>>
11+
#[WithoutArgument]#[SingleArgument(0)]#[FewArguments('Hello', 'World')]
1212
function bar() {}

0 commit comments

Comments
 (0)