Skip to content

Commit 16b6dda

Browse files
committed
Generic/MultipleStatementAlignment: add extra tests
.. safeguarding the tokenizer fix which should prevent the issue as reported in 3326.
1 parent d2574b9 commit 16b6dda

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,3 +468,13 @@ $resource = new class() {
468468

469469
$one <<= 8;
470470
$onetwothree = 3;
471+
472+
// Issue 3326.
473+
class Test
474+
{
475+
public const DEFAULT = 'default';
476+
public const SOS = 'sos';
477+
public const HELP = 'help';
478+
479+
protected static $thisIsAReallyLongVariableName = [];
480+
}

src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.inc.fixed

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,3 +468,13 @@ $resource = new class() {
468468

469469
$one <<= 8;
470470
$onetwothree = 3;
471+
472+
// Issue 3326.
473+
class Test
474+
{
475+
public const DEFAULT = 'default';
476+
public const SOS = 'sos';
477+
public const HELP = 'help';
478+
479+
protected static $thisIsAReallyLongVariableName = [];
480+
}

0 commit comments

Comments
 (0)