public function testUpdateChildAfterRename() { $this->pt1->setName('Temp name'); $this->assertSame($this->pt1, $this->menu->getChild('Temp name')); $this->assertEquals(array('Temp name', 'Parent 2'), array_keys($this->menu->getChildren())); $this->assertNull($this->menu->getChild('Parent 1')); }