public function testBirthDate()
 {
     $sample = realpath(__DIR__ . '/files/issue00012.ged');
     $parser = new Parser();
     $gedcom = $parser->parse($sample);
     $indi = current($gedcom->getIndi());
     $birt = current($indi->getEven());
     $this->assertEquals('01.01.1970', $birt->getDate());
 }
 /**
  * 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());
 }
Exemple #4
0
 /**
  *
  */
 public function setUp()
 {
     $this->parser = new Parser();
     $this->gedcom = $this->parser->parse(TEST_DIR . '/stresstestfiles/TGC551LF.ged');
 }