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