/** * Test loading a JSON file * Note that this function tests isJson with a valid Json string */ public function testSupportsWithJsonFile() { $this->jsonLoader->expects($this->once())->method('isFile')->willReturn(true); $this->jsonLoader->expects($this->once())->method('validateExtension')->willReturn(true); $jsonFile = Fixtures::getSampleJsonFile(); $this->assertTrue($this->jsonLoader->supports($jsonFile)); }