public function testLoad() { $json = Fixtures::getSampleJsonString(); $this->assertEquals(json_decode($json, true), $this->loader->load($json)); }
/** * Test loading a JSON string */ public function testSupportsWithJsonString() { $this->jsonLoader->expects($this->once())->method('isFile')->willReturn(false); $json = Fixtures::getSampleJsonString(); $this->assertTrue($this->jsonLoader->supports($json)); }