示例#1
0
 /**
  * Test add.
  */
 public function testAdd()
 {
     $zc = new ZoneCollection();
     $zc->add(new SOA());
     $this->assertInstanceOf('Jeboehm\\Lampcp\\ZoneGeneratorBundle\\Model\\ResourceRecord\\SOA', $zc->getSoa());
     $zc->add(new AAAA());
     $this->assertInstanceOf('Jeboehm\\Lampcp\\ZoneGeneratorBundle\\Model\\ResourceRecord\\AAAA', $zc->last());
 }