예제 #1
0
 public function testReAddRemovedChild()
 {
     $gc2 = $this->ch4->addChild('gc2');
     $this->ch4->removeChild('gc2');
     $this->menu->addChild($gc2);
     $this->assertEquals(3, count($this->menu));
     $this->assertTrue($gc2->isLast());
     $this->assertFalse($this->pt2->isLast());
 }