Skip to content

Commit e3b91d5

Browse files
committed
Added test for capitalised O (ref #3481)
1 parent a697187 commit e3b91d5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/Core/Tokenizer/BackfillNumericSeparatorTest.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ $foo = 0137_041;
3737
/* testExplicitOctal */
3838
$foo = 0o137_041;
3939

40+
/* testExplicitOctalCapitalised */
41+
$foo = 0O137_041;
42+
4043
/* testIntMoreThanMax */
4144
$foo = 10_223_372_036_854_775_807;
4245

tests/Core/Tokenizer/BackfillNumericSeparatorTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ public function dataTestBackfill()
139139
'value' => '0o137_041',
140140
],
141141
],
142+
[
143+
[
144+
'marker' => '/* testExplicitOctalCapitalised */',
145+
'type' => 'T_LNUMBER',
146+
'value' => '0O137_041',
147+
],
148+
],
142149
[
143150
[
144151
'marker' => '/* testIntMoreThanMax */',

0 commit comments

Comments
 (0)