| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function test(): void |
||
| 34 | { |
||
| 35 | $splTypes = [ |
||
| 36 | \SplType::class => DuckType::class, |
||
| 37 | \SplInt::class => DuckInt::class, |
||
| 38 | \SplFloat::class => DuckFloat::class, |
||
| 39 | \SplEnum::class => DuckEnum::class, |
||
| 40 | \SplBool::class => DuckBool::class, |
||
| 41 | \SplString::class => DuckString::class, |
||
| 42 | ]; |
||
| 43 | |||
| 44 | foreach ($splTypes as $splType => $duckType) { |
||
| 45 | $this->assertTrue(\is_a($splType, $duckType, true)); |
||
| 46 | } |
||
| 49 |