cvs: pear-core /tests/PEAR_Config test_readFTPConfigFile.phpt

From: Date: Mon, 22 Aug 2005 02:28:17 +0000
Subject: cvs: pear-core /tests/PEAR_Config test_readFTPConfigFile.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-3700@lists.php.net to get a copy of this message
cellog Sun Aug 21 22:28:17 2005 EDT Modified files: /pear-core/tests/PEAR_Config test_readFTPConfigFile.phpt Log: fix test to use PEAR_RemoteInstall if available http://cvs.php.net/diff.php/pear-core/tests/PEAR_Config/test_readFTPConfigFile.phpt?r1=1.3&r2=1.4&ty=u Index: pear-core/tests/PEAR_Config/test_readFTPConfigFile.phpt diff -u pear-core/tests/PEAR_Config/test_readFTPConfigFile.phpt:1.3 pear-core/tests/PEAR_Config/test_readFTPConfigFile.phpt:1.4 --- pear-core/tests/PEAR_Config/test_readFTPConfigFile.phpt:1.3 Wed Dec 29 01:16:34 2004 +++ pear-core/tests/PEAR_Config/test_readFTPConfigFile.phpt Sun Aug 21 22:28:16 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'; -$config = new PEAR_Config($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); +require_once 'PEAR/Command/Remoteinstall-init.php'; +$config = &new PEAR_Config($temp_path . DIRECTORY_SEPARATOR . 'pear.ini'); include_once dirname(__FILE__) . '/test_readFTPConfigFile/FTP.php.inc'; $ftp = &Net_FTP::singleton(); $ftp->addRemoteFile('/path/to/pear/config.ini', dirname(__FILE__) . DIRECTORY_SEPARATOR .

« previous php.pear.core (#3700) next »