1 | <?php |
||
11 | class JsonLoaderTest extends TestCase |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @expectedException \ComposerRequireChecker\Exception\NotReadableException |
||
16 | */ |
||
17 | public function testHasErrorWithWrongPath() |
||
18 | { |
||
19 | $path = __DIR__ . '/wrong/path/non-existing-file.json'; |
||
20 | new JsonLoader($path); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @expectedException \ComposerRequireChecker\Exception\InvalidJsonException |
||
25 | */ |
||
26 | public function testHasErrorWithInvalidFile() |
||
31 | |||
32 | public function testHasDataWithValidFile() |
||
38 | |||
39 | } |
||
40 |