/** * @test * @covers Plum\PlumJson\JsonReader::__construct() * @covers Plum\PlumJson\JsonReader::getIterator() * @covers Plum\PlumJson\JsonReader::getJson() */ public function getIteratorReturnsIteratorOfJsonFile() { $reader = new JsonReader('[{"foo": "bar"}]'); $this->assertEquals('bar', $reader->getIterator()[0]['foo']); }