示例#1
0
 /**
  * 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());
 }
示例#2
0
 /**
  * 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());
 }
示例#3
0
 /**
  *
  */
 public function testNoErrors()
 {
     $this->assertEquals(1, count($this->parser->getErrors()));
 }