Skip to content

Commit 4d6fe4e

Browse files
committed
Update assert-same-boolean-expected.php
1 parent 07d2784 commit 4d6fe4e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Rules/PHPUnit/data/assert-same-boolean-expected.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ public function testNonLowercase(): void
7575
\PHPUnit\Framework\Assert::assertSame(False, 'foo');
7676
}
7777

78+
public function testMaybeTrueFalse(): void
79+
{
80+
$a = rand(0, 1) ? true : 'foo';
81+
\PHPUnit\Framework\Assert::assertSame($a, 'foo');
82+
$a = rand(0, 1) ? false : 'foo';
83+
\PHPUnit\Framework\Assert::assertSame($a, 'foo');
84+
}
85+
7886
}
7987

8088
const PHPSTAN_PHPUNIT_TRUE = true;

0 commit comments

Comments
 (0)