Skip to content

Commit fc5cf37

Browse files
committed
Add additional test cases
1 parent 4fedfc8 commit fc5cf37

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/Standards/Generic/Tests/CodeAnalysis/MixedBooleanOperatorUnitTest.inc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ if (true && $foo[true && true || true]);
3232

3333
if (true && foo(true) || true);
3434
if (true && $foo[true] || true);
35+
if (true && foo($foo[true]) || true);
36+
37+
$foo[] = true && true || false;
38+
39+
foo([true && true || false]);
40+
41+
if (true && true || true && true);

src/Standards/Generic/Tests/CodeAnalysis/MixedBooleanOperatorUnitTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function getErrorList()
3434
31 => 1,
3535
33 => 1,
3636
34 => 1,
37+
35 => 1,
38+
37 => 1,
39+
39 => 1,
40+
41 => 2,
3741
];
3842

3943
}//end getErrorList()

0 commit comments

Comments
 (0)