Skip to content

Commit

Permalink
use unique class names in test to make easier to differ from other cl…
Browse files Browse the repository at this point in the history
…asses
  • Loading branch information
TomasVotruba committed May 12, 2022
1 parent 5cbcd07 commit f34ec2c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/code/parser/stmt/class/modifier.test
Expand Up @@ -66,7 +66,7 @@ array(
)
)
-----
<?php class A { readonly readonly $a; }
<?php class C { readonly readonly $a; }
-----
!!php7
Multiple readonly modifiers are not allowed from 1:26 to 1:33
Expand All @@ -76,7 +76,7 @@ array(
)
flags: 0
name: Identifier(
name: A
name: C
)
extends: null
implements: array(
Expand Down Expand Up @@ -258,6 +258,7 @@ array(
<?php readonly class A { }
// Type in the partial parse could conceivably be any of 0, 16 or 32
-----
!!php5
Syntax error, unexpected T_READONLY from 1:7 to 1:14
array(
0: Stmt_Class(
Expand All @@ -280,7 +281,7 @@ array(
)
)
-----
<?php class A { abstract $a; }
<?php class B { abstract $b; }
-----
Properties cannot be declared abstract from 1:17 to 1:24
array(
Expand All @@ -289,7 +290,7 @@ array(
)
flags: 0
name: Identifier(
name: A
name: B
)
extends: null
implements: array(
Expand All @@ -303,7 +304,7 @@ array(
props: array(
0: Stmt_PropertyProperty(
name: VarLikeIdentifier(
name: a
name: b
)
default: null
)
Expand Down

0 comments on commit f34ec2c

Please sign in to comment.