Skip to content

Commit b11f021

Browse files
author
MarkBaker
committed
Additional test case for capital O when expressing explicit octal values
1 parent 9a78378 commit b11f021

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
22

3-
/* testExplicitOctal declaration */
3+
/* testExplicitOctal */
44
$foo = 0o137041;
5+
6+
/* testExplicitOctal capitalised */
7+
$bar = 0O137041;

tests/Core/Tokenizer/BackfillExplicitOctalNotationTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,18 @@ public function dataExplicitOctalNotation()
5050
return [
5151
[
5252
[
53-
'marker' => '/* testExplicitOctal declaration */',
53+
'marker' => '/* testExplicitOctal */',
5454
'type' => 'T_LNUMBER',
5555
'value' => '0o137041',
5656
],
5757
],
58+
[
59+
[
60+
'marker' => '/* testExplicitOctal capitalised */',
61+
'type' => 'T_LNUMBER',
62+
'value' => '0O137041',
63+
],
64+
],
5865
];
5966

6067
}//end dataExplicitOctalNotation()

0 commit comments

Comments
 (0)