Exemplo n.º 1
0
 /**
  * Checks, that the array keys are in row.
  */
 public function testKeysAreInRow()
 {
     // Test aufbauen
     $rr = array();
     $zc = new ZoneCollection();
     for ($i = 0; $i < 4; $i++) {
         $rr[] = $this->_getRandomResourceRecord();
         $zc->add($rr[$i]);
     }
     $zc->remove(3);
     // Testen
     for ($i = 0; $i < 3; $i++) {
         $this->assertNotNull($zc->get($i));
     }
 }