Skip to content

Commit 624f37a

Browse files
committed
Rename ScalarEnum to BackedEnum
1 parent 3389625 commit 624f37a

File tree

59 files changed

+258
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+258
-258
lines changed

Zend/tests/enum/scalar-cases-int.phpt renamed to Zend/tests/enum/backed-cases-int.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Int scalar enums with can list cases
2+
Int backed enums with can list cases
33
--FILE--
44
<?php
55

Zend/tests/enum/scalar-cases-string.phpt renamed to Zend/tests/enum/backed-cases-string.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
String scalar enums can list cases
2+
String backed enums can list cases
33
--FILE--
44
<?php
55

Zend/tests/enum/scalar-duplicate-int.phpt renamed to Zend/tests/enum/backed-duplicate-int.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Scalar enums reject duplicate int values
2+
Backed enums reject duplicate int values
33
--FILE--
44
<?php
55

Zend/tests/enum/scalar-duplicate-string.phpt renamed to Zend/tests/enum/backed-duplicate-string.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Scalar enums reject duplicate string values
2+
Backed enums reject duplicate string values
33
--FILE--
44
<?php
55

Zend/tests/enum/scalar-from-invalid-int.phpt renamed to Zend/tests/enum/backed-from-invalid-int.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Scalar Enum::from() reject invalid int
2+
BackedEnum::from() reject invalid int
33
--FILE--
44
<?php
55

@@ -16,4 +16,4 @@ try {
1616

1717
?>
1818
--EXPECT--
19-
2 is not a valid scalar value for enum "Foo"
19+
2 is not a valid backing value for enum "Foo"

Zend/tests/enum/scalar-from-invalid-string.phpt renamed to Zend/tests/enum/backed-from-invalid-string.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Scalar Enum::from() reject invalid string
2+
BackedEnum::from() reject invalid string
33
--FILE--
44
<?php
55

@@ -18,4 +18,4 @@ try {
1818

1919
?>
2020
--EXPECT--
21-
"A" is not a valid scalar value for enum "Suit"
21+
"A" is not a valid backing value for enum "Suit"

Zend/tests/enum/scalar-from-invalid-type.phpt renamed to Zend/tests/enum/backed-from-invalid-type.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Scalar Enum::from() reject invalid type
2+
BackedEnum::from() reject invalid type
33
--FILE--
44
<?php
55

@@ -30,5 +30,5 @@ try {
3030

3131
?>
3232
--EXPECT--
33-
"42" is not a valid scalar value for enum "Suit"
33+
"42" is not a valid backing value for enum "Suit"
3434
Foo::from(): Argument #1 ($value) must be of type int, string given

Zend/tests/enum/scalar-from-unknown-hash.phpt renamed to Zend/tests/enum/backed-from-unknown-hash.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Scalar enums from() unknown hash
2+
BackedEnum::from() unknown hash
33
--FILE--
44
<?php
55

Zend/tests/enum/scalar-from.phpt renamed to Zend/tests/enum/backed-from.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Scalar enums can be upcast from a scalar
2+
BackedEnum::from()
33
--FILE--
44
<?php
55

Zend/tests/enum/scalar-int-case-without-value.phpt renamed to Zend/tests/enum/backed-int-case-without-value.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Int scalar enums with case without value
2+
Int backed enums with case without value
33
--FILE--
44
<?php
55

@@ -11,4 +11,4 @@ var_dump(Foo::Bar->value);
1111

1212
?>
1313
--EXPECTF--
14-
Fatal error: Case Bar of scalar enum Foo must have a value in %s on line %d
14+
Fatal error: Case Bar of backed enum Foo must have a value in %s on line %d

0 commit comments

Comments
 (0)