/** * @expectedException Sabre\DAV\Exception\MethodNotAllowed */ public function testSetName() { $this->node->setName('2'); }