public function testObjectStructureCorrect()
 {
     $result = \BawagCsvParser\BawagCsvParser::parse($this->csv);
     $this->assertObjectHasAttribute('postingLineId', $result[0]);
     $this->assertObjectHasAttribute('account', $result[0]);
     $this->assertObjectHasAttribute('text', $result[0]);
     $this->assertObjectHasAttribute('postingDate', $result[0]);
     $this->assertObjectHasAttribute('valueDate', $result[0]);
     $this->assertObjectHasAttribute('amount', $result[0]);
     $this->assertObjectHasAttribute('currency', $result[0]);
     $this->assertObjectHasAttribute('comment', $result[0]);
     $this->assertObjectHasAttribute('contraAccount', $result[0]);
     $this->assertObjectHasAttribute('contraBic', $result[0]);
     $this->assertObjectHasAttribute('contraName', $result[0]);
 }
 private static function parseLine($values)
 {
     $entry = new \stdClass();
     BawagCsvParser::setPostingLineId($entry, $values);
     BawagCsvParser::setAccount($entry, $values);
     BawagCsvParser::setText($entry, $values);
     BawagCsvParser::setPostingDate($entry, $values);
     BawagCsvParser::setValueDate($entry, $values);
     BawagCsvParser::setAmount($entry, $values);
     BawagCsvParser::setCurrency($entry, $values);
     BawagCsvParser::setComment($entry, $values);
     BawagCsvParser::setContraAccount($entry, $values);
     BawagCsvParser::setContraBic($entry, $values);
     BawagCsvParser::setContraName($entry, $values);
     return $entry;
 }