/** * @expectedException InvalidArgumentException */ public function testRenameToExistingSiblingNameThrowAnException() { $this->pt1->setName('Parent 2'); }