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