We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d6fe4e commit fd94ce4Copy full SHA for fd94ce4
1 file changed
tests/Rules/PHPUnit/data/assert-same-boolean-expected.php
@@ -83,6 +83,18 @@ public function testMaybeTrueFalse(): void
83
\PHPUnit\Framework\Assert::assertSame($a, 'foo');
84
}
85
86
+ public function testConstMaybeTrueFalse(): void
87
+ {
88
+ if (
89
+ !defined('MY_TEST_CONST')
90
+ ) {
91
+ return;
92
+ }
93
+ if (MY_TEST_CONST !== true && MY_TEST_CONST !== false) {
94
95
96
+ \PHPUnit\Framework\Assert::assertSame(MY_TEST_CONST, 'foo');
97
98
99
100
const PHPSTAN_PHPUNIT_TRUE = true;
0 commit comments