We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d2784 commit 4d6fe4eCopy full SHA for 4d6fe4e
tests/Rules/PHPUnit/data/assert-same-boolean-expected.php
@@ -75,6 +75,14 @@ public function testNonLowercase(): void
75
\PHPUnit\Framework\Assert::assertSame(False, 'foo');
76
}
77
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
84
+ }
85
+
86
87
88
const PHPSTAN_PHPUNIT_TRUE = true;
0 commit comments