cvs: pear-core /tests/PEAR_Config test_getFTP.phpt
| From: | Greg Beaver | Date: | Mon, 22 Aug 2005 02:26:55 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Config test_getFTP.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-3699@lists.php.net to get a copy of this message | ||
cellog Sun Aug 21 22:26:55 2005 EDT
Modified files:
/pear-core/tests/PEAR_Config test_getFTP.phpt
Log:
fix test to use PEAR_RemoteInstall if available
http://cvs.php.net/diff.php/pear-core/tests/PEAR_Config/test_getFTP.phpt?r1=1.3&r2=1.4&ty=u
Index: pear-core/tests/PEAR_Config/test_getFTP.phpt
diff -u pear-core/tests/PEAR_Config/test_getFTP.phpt:1.3
pear-core/tests/PEAR_Config/test_getFTP.phpt:1.4
--- pear-core/tests/PEAR_Config/test_getFTP.phpt:1.3 Wed Dec 1 01:06:01 2004
+++ pear-core/tests/PEAR_Config/test_getFTP.phpt Sun Aug 21 22:26:54 2005
@@ -5,12 +5,16 @@
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
}
+if (!(include_once 'Net/FTP.php') || !(include_once 'PEAR/FTP.php')) {
+ die('skip requires PEAR_RemoteInstall to work');
+}
?>
--FILE--
<?php
error_reporting(E_ALL);
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
require_once 'PEAR/ChannelFile.php';
+require_once 'PEAR/Command/Remoteinstall-init.php';
ini_set('include_path', '####');
$config = new PEAR_Config($temp_path . DIRECTORY_SEPARATOR . 'pear.ini', $temp_path .
DIRECTORY_SEPARATOR . 'pear.ini', 'ftp://example.com/config.ini');
$phpunit->assertErrors(array(