/** * @expectedException QueryPathException */ public function testAutoloadExtensions() { // FIXME: This isn't really much of a test. QueryPathExtensionRegistry::autoloadExtensions(FALSE); try { qp()->stubToe(); } catch (Exception $e) { QueryPathExtensionRegistry::autoloadExtensions(TRUE); throw $e; } }