summaryrefslogtreecommitdiff
path: root/pear/tests/download_test_classes.php.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pear/tests/download_test_classes.php.inc')
-rw-r--r--pear/tests/download_test_classes.php.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/pear/tests/download_test_classes.php.inc b/pear/tests/download_test_classes.php.inc
index c27696d48c..0341a28611 100644
--- a/pear/tests/download_test_classes.php.inc
+++ b/pear/tests/download_test_classes.php.inc
@@ -1,5 +1,4 @@
<?php
-require_once 'XML/RPC.php';
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'PEAR_test_mock_pearweb.php.inc';
$GLOBALS['pearweb'] = new PEAR_test_mock_pearweb;
class test_XML_RPC_Client extends XML_RPC_Client {
@@ -94,8 +93,8 @@ class test_PEAR_Remote extends PEAR_Remote {
};
return $result;
}
- if (!@include_once("XML/RPC.php")) {
- return $this->raiseError("For this remote PEAR operation you need to install the XML_RPC package");
+ if (!extension_loaded("xmlrpc")) {
+ return $this->raiseError("For this remote PEAR operation you need to install the xmlrpc extension");
}
array_shift($args);
$server_host = $this->_registry->channelInfo($server_channel, 'server');
@@ -401,4 +400,4 @@ class test_PEAR_Downloader extends PEAR_Downloader {
return $dest_file;
}
}
-?> \ No newline at end of file
+?>