/** * @expectedException InvalidArgumentException */ public function testInvalidXPath() { $root = new SimpleDOM('<root />'); $root->removeNodes('????'); }