| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | class SplBoolUnstrictTest extends TestCase |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Unit test. |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | * |
||
| 26 | * @psalm-suppress InvalidScalarArgument |
||
| 27 | */ |
||
| 28 | public function test(): void |
||
| 29 | { |
||
| 30 | // @phpstan-ignore-next-line |
||
| 31 | $instance = new DuckBool(0); |
||
| 32 | $this->assertFalse($instance()); |
||
| 33 | |||
| 34 | // @phpstan-ignore-next-line |
||
| 35 | $instance = new DuckBool(1); |
||
| 36 | $this->assertTrue($instance()); |
||
| 37 | } |
||
| 39 |