Beispiel #1
0
 private function assertEqualAgency(Agency $a, Agency $b)
 {
     $this->assertTrue($a->getBank()->getBankID() === $b->getBank()->getBankID());
     $this->assertTrue($a->getID() === $b->getID());
     $this->assertTrue($a->getPostcode() === $b->getPostcode());
     $this->assertTrue($a->getCity() === $b->getCity());
     $this->assertTrue($a->getName() === $b->getName());
     $this->assertTrue($a->getShortTerm() === $b->getShortTerm());
     $this->assertTrue($a->hasPAN() === $b->hasPAN());
     $this->assertTrue($a->hasBIC() === $b->hasBIC());
     if ($a->hasPAN()) {
         $this->assertTrue($a->getPAN() === $b->getPAN());
     }
     if ($a->hasBIC()) {
         $this->assertTrue($a->getBIC() === $b->getBIC());
     }
 }