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