Beispiel #1
0
 function testGetKullArray()
 {
     $hp = new KullParser();
     $parseString = "665525|11111/96|03225/97|3074574|20.04.2001|19.09.2000|348";
     $pa = $hp->getArray($parseString);
     $this->assertEquals("665525", $pa["kullId"]);
     $this->assertEquals("11111/96", $pa["hundIdFar"]);
     $this->assertEquals("03225/97", $pa["hundIdMor"]);
     $this->assertEquals("3074574", $pa["oppdretterId"]);
     $this->assertEquals("2001-04-20", $pa["endretDato"]);
     $this->assertEquals("2000-09-19", $pa["fodt"]);
     $this->assertEquals("348", $pa["raseId"]);
 }