/** * Test handling an empty note. */ public function testEmptyNote() { $sample = realpath(__DIR__ . '/files/issue00018.ged'); $parser = new Parser(); $gedcom = $parser->parse($sample); $sour = current($gedcom->getSour()); $this->assertCount(0, $sour->getNote()); $this->assertCount(1, $parser->getErrors()); }
/** * Test an empty 1 FAMC under an INDI. */ public function testEmptyFamc() { $sample = realpath(__DIR__ . '/files/issue00017.ged'); $parser = new Parser(); $gedcom = $parser->parse($sample); $indi = current($gedcom->getIndi()); $this->assertCount(0, $indi->getFamc()); $this->assertCount(1, $parser->getErrors()); }
/** * */ public function testNoErrors() { $this->assertEquals(1, count($this->parser->getErrors())); }