Cascade\Tests\Config\Loader\FileLoader\JsonTest::testSupportsWithJsonFile PHP Метод

testSupportsWithJsonFile() публичный Метод

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));
    }