Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class JsonTest extends CommonTestClass |
||
12 | { |
||
13 | public function testNoSource(): void |
||
14 | { |
||
15 | $lib = new Parsers\Json(); |
||
16 | $this->assertInstanceOf(Parsers\AParser::class, $lib); |
||
17 | $this->assertEmpty($lib->parseInput([])); |
||
18 | } |
||
19 | |||
20 | public function testNoFile(): void |
||
21 | { |
||
22 | $lib = new Parsers\Json(); |
||
23 | $this->assertInstanceOf(Parsers\AParser::class, $lib); |
||
24 | $this->assertEmpty($lib->parseInput([__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'not_exists'])); |
||
25 | } |
||
26 | |||
27 | public function testMalformedContent(): void |
||
32 | } |
||
33 | |||
34 | public function testPass(): void |
||
41 | } |
||
42 | } |
||
43 |