/** * @expectedException BadMethodCallException */ public function testRoot() { $root = new SXE('<root />'); $root->removeSelf(); }