Skip to content

Commit 9a5bdc5

Browse files
committed
Remove class for enum case
1 parent 1fac0ce commit 9a5bdc5

20 files changed

+84
-223
lines changed

Zend/tests/enum/003.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ try {
3131

3232
?>
3333
--EXPECTF--
34-
takesBaz(): Argument #1 ($baz) must be of type Baz, Foo::Bar given, called in %s on line %d
35-
takesFoo(): Argument #1 ($foo) must be of type Foo, Baz::Qux given, called in %s on line %d
34+
takesBaz(): Argument #1 ($baz) must be of type Baz, Foo given, called in %s on line %d
35+
takesFoo(): Argument #1 ($foo) must be of type Foo, Baz given, called in %s on line %d

Zend/tests/enum/005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface Colorful {
77
public function color(): string;
88
}
99

10-
enum Suit /* implements Colorful */ {
10+
enum Suit implements Colorful {
1111
case Hearts;
1212
case Diamonds;
1313
case Clubs;

Zend/tests/enum/006.phpt

Lines changed: 0 additions & 46 deletions
This file was deleted.

Zend/tests/enum/008.phpt

Lines changed: 0 additions & 16 deletions
This file was deleted.

Zend/tests/enum/010.phpt

Lines changed: 0 additions & 14 deletions
This file was deleted.

Zend/tests/enum/011.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
--TEST--
22
Enum is abstract
3+
--SKIPIF--
4+
<?php
5+
die("skip doesn't work yet");
6+
?>
37
--FILE--
48
<?php
59

Zend/tests/enum/012.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ try {
1717

1818
?>
1919
--EXPECT--
20-
Cannot create dynamic property Foo::Bar::$baz
20+
Cannot create dynamic property Foo::$baz

Zend/tests/enum/014.phpt

Lines changed: 0 additions & 14 deletions
This file was deleted.

Zend/tests/enum/017.phpt

Lines changed: 0 additions & 14 deletions
This file was deleted.

Zend/tests/enum/018.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ Enum disallows static properties
44
<?php
55

66
enum Foo {
7-
case Bar {
8-
public static $baz;
9-
}
7+
public static $bar;
108
}
119

1210
?>
1311
--EXPECTF--
14-
Fatal error: Enum cases may not include member variables in %s on line %d
12+
Fatal error: Enums may not include member variables in %s on line %d

0 commit comments

Comments
 (0)