Skip to content

Commit 7bcb205

Browse files
committed
Fix "readonly" tests relying on specific Bison output.
Fix reflection test.
1 parent a673e18 commit 7bcb205

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

Zend/tests/readonly_classes/readonly_enum.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ readonly enum Foo
99

1010
?>
1111
--EXPECTF--
12-
Parse error: syntax error, unexpected token "enum", expecting "abstract" or "final" or "readonly" or "class" in %s on line %d
12+
Parse error: syntax error, unexpected token "enum" in %s on line %d

Zend/tests/readonly_classes/readonly_interface.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ readonly interface Foo
99

1010
?>
1111
--EXPECTF--
12-
Parse error: syntax error, unexpected token "interface", expecting "abstract" or "final" or "readonly" or "class" in %s on line %d
12+
Parse error: syntax error, unexpected token "interface" in %s on line %d

Zend/tests/readonly_classes/readonly_trait.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ readonly trait Foo
99

1010
?>
1111
--EXPECTF--
12-
Parse error: syntax error, unexpected token "trait", expecting "abstract" or "final" or "readonly" or "class" in %s on line %d
12+
Parse error: syntax error, unexpected token "trait" in %s on line %d

ext/reflection/tests/ReflectionClass_toString_001.phpt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ echo $rc;
1111
--EXPECT--
1212
Class [ <internal:Reflection> class ReflectionClass implements Stringable, Reflector ] {
1313

14-
- Constants [4] {
15-
Constant [ public int IS_IMPLICIT_ABSTRACT ] { 16 }
14+
- Constants [5] {
15+
Constant [ public int IS_IMPLICIT_ABSTRACT ] { 1073741824 }
1616
Constant [ public int IS_EXPLICIT_ABSTRACT ] { 64 }
1717
Constant [ public int IS_FINAL ] { 32 }
1818
Constant [ public int IS_READONLY ] { 65536 }
19+
Constant [ public int IS_STATIC ] { 16 }
1920
}
2021

2122
- Static properties [0] {
@@ -28,7 +29,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Stringable, Refle
2829
Property [ public string $name ]
2930
}
3031

31-
- Methods [56] {
32+
- Methods [57] {
3233
Method [ <internal:Reflection> private method __clone ] {
3334

3435
- Parameters [0] {
@@ -292,6 +293,13 @@ Class [ <internal:Reflection> class ReflectionClass implements Stringable, Refle
292293
- Return [ bool ]
293294
}
294295

296+
Method [ <internal:Reflection> public method isStatic ] {
297+
298+
- Parameters [0] {
299+
}
300+
- Return [ bool ]
301+
}
302+
295303
Method [ <internal:Reflection> public method getModifiers ] {
296304

297305
- Parameters [0] {

0 commit comments

Comments
 (0)