function getYmlFdo($ymlfn) { $di = \yaml_parse_file($ymlfn); $fda = new FatcaDataArray($di, false, "", 2014, $this->conMan); $fda->start(); $a2o = new Array2Oecd($fda); $a2o->convert(); return $a2o->fdo; }
public function testWrongType() { $di = \yaml_parse_file(__DIR__ . '/fdatIndividual.yml'); $di[0]["ENT_TYPE"] = "inexistant"; $fda = new FatcaDataArray($di, false, "", 2014, $this->conMan); $fda->start(); $a2o = new Array2Oecd($fda); try { $a2o->convert(); $this->assertTrue(false); } catch (\Exception $e) { $this->assertTrue(true); } }