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