public function testUnmapObjectsWithCollection() { $dataMapper = new DataMapper($this->provideSerializer(), Inflector::get(), 'Balloon\\Mapper\\resources\\Foo'); $result = $dataMapper->mapDataList([['key1' => 'value1'], ['key1' => 'value2']]); $this->assertInstanceOf('Balloon\\Mapper\\resources\\Foos', $result); }
/** * @return array */ public function read() { return $this->dataMapper->mapDataList((array) $this->fileReader->read()); }