Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function testOf(): void |
||
20 | { |
||
21 | /** @var ArrayChecker $checker */ |
||
22 | $checker = $this->container->get(ArrayChecker::class); |
||
23 | |||
24 | $this->assertTrue($checker->of([1], 'is_int')); |
||
25 | $this->assertTrue($checker->of([1], 'integer')); |
||
26 | $this->assertTrue($checker->of(['1'], 'is_string')); |
||
27 | |||
28 | $this->assertFalse($checker->of(1, 'is_int')); |
||
29 | $this->assertFalse($checker->of([1], 'is_string')); |
||
30 | } |
||
32 |