models = realpath(__DIR__ . '/../src/data'); } public function testDecodesJsonToArray() { $c = new JsonCompiler(); $data = $c->load($this->models . '/endpoints.json'); $this->assertIsArray($data); } public function testEnsuresFileExists() { $this->expectException(\InvalidArgumentException::class); $c = new JsonCompiler(); $c->load($this->models . '/not_there.json'); } }