Example #1
0
 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);
 }
Example #2
0
 /**
  * @return array
  */
 public function read()
 {
     return $this->dataMapper->mapDataList((array) $this->fileReader->read());
 }