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

From: Date: Mon, 22 Aug 2005 02:29:02 +0000
Subject: cvs: pear-core /tests/PEAR_Config test_readFTPConfigFile_fail.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-3701@lists.php.net to get a copy of this message
cellog Sun Aug 21 22:29:02 2005 EDT Modified files: /pear-core/tests/PEAR_Config test_readFTPConfigFile_fail.phpt Log: fix test to use PEAR_RemoteInstall if available http://cvs.php.net/diff.php/pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.phpt?r1=1.4&r2=1.5&ty=u Index: pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.phpt diff -u pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.phpt:1.4 pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.phpt:1.5 --- pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.phpt:1.4 Wed Dec 29 01:16:34 2004 +++ pear-core/tests/PEAR_Config/test_readFTPConfigFile_fail.phpt Sun Aug 21 22:29:02 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'); ini_set('include_path', './#####'); $config->readFTPConfigFile('ftp://example.com'); $phpunit->assertErrors(array(

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