Cascade\Tests\Config\Loader\FileLoader\JsonTest::testLoad PHP Method

testLoad() public method

Test loading a JSON string
public testLoad ( )
    public function testLoad()
    {
        $json = Fixtures::getSampleJsonString();
        $this->jsonLoader->expects($this->once())->method('readFrom')->willReturn($json);
        $this->assertEquals(json_decode($json, true), $this->jsonLoader->load($json));
    }