Skip to content

Commit 4d0be7c

Browse files
committed
Tests/BackfillEnum: update token calculations
... after the bugfix for `T_GOTO_LABEL`. Also added a minor tweak to one test case to make sure that spacing around the type colon is handled correctly.
1 parent bb03390 commit 4d0be7c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/Core/Tokenizer/BackfillEnumTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ enum Boo: int {
1313
}
1414

1515
/* testBackedStringEnum */
16-
enum Hoo: string
16+
enum Hoo : string
1717
{
1818
case ONE = 'one';
1919
case TWO = 'two';

tests/Core/Tokenizer/BackfillEnumTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,20 @@ public function dataEnums()
8787
[
8888
'/* testBackedIntEnum */',
8989
'enum',
90-
6,
91-
28,
90+
7,
91+
29,
9292
],
9393
[
9494
'/* testBackedStringEnum */',
9595
'enum',
96-
6,
97-
28,
96+
8,
97+
30,
9898
],
9999
[
100100
'/* testComplexEnum */',
101101
'enum',
102-
10,
103-
71,
102+
11,
103+
72,
104104
],
105105
[
106106
'/* testEnumWithEnumAsClassName */',

0 commit comments

Comments
 (0)