cvs: pear-core /tests/PEAR_Downloader/analyzeDependencies test_analyzeDependencies_fail_1.0_soft.phpt

From: Date: Mon, 23 May 2005 04:31:26 +0000
Subject: cvs: pear-core /tests/PEAR_Downloader/analyzeDependencies test_analyzeDependencies_fail_1.0_soft.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-32042@lists.php.net to get a copy of this message
cellog Mon May 23 00:31:26 2005 EDT Modified files: /pear-core/tests/PEAR_Downloader/analyzeDependencies test_analyzeDependencies_fail_1.0_soft.phpt Log: fix test http://cvs.php.net/diff.php/pear-core/tests/PEAR_Downloader/analyzeDependencies/test_analyzeDependencies_fail_1.0_soft.phpt?r1=1.2&r2=1.3&ty=u Index: pear-core/tests/PEAR_Downloader/analyzeDependencies/test_analyzeDependencies_fail_1.0_soft.phpt diff -u pear-core/tests/PEAR_Downloader/analyzeDependencies/test_analyzeDependencies_fail_1.0_soft.phpt:1.2 pear-core/tests/PEAR_Downloader/analyzeDependencies/test_analyzeDependencies_fail_1.0_soft.phpt:1.3 --- pear-core/tests/PEAR_Downloader/analyzeDependencies/test_analyzeDependencies_fail_1.0_soft.phpt:1.2 Mon Jan 10 23:28:48 2005 +++ pear-core/tests/PEAR_Downloader/analyzeDependencies/test_analyzeDependencies_fail_1.0_soft.phpt Mon May 23 00:31:26 2005 @@ -193,15 +193,13 @@ $phpunit->assertNoErrors('setup'); $_test_dep->setExtensions(array('bar' => '1.0')); -$err = $dp->_downloader->analyzeDependencies($params); -$phpunit->assertErrors(array( - array('package' => 'PEAR_Error', 'message' => - 'Cannot install, dependencies failed') -), 'end'); +$dldir = $dp->_downloader->getDownloadDir(); +$dp->_downloader->analyzeDependencies($params); +$phpunit->assertEquals(array(), $params, 'empty array'); $phpunit->assertEquals(array ( array ( 0 => 3, - 1 => '+ tmp dir created at ' . $dp->_downloader->getDownloadDir(), + 1 => '+ tmp dir created at ' . $dldir, ), ), $fakelog->getLog(), 'end log'); $phpunit->assertEquals(array(), $fakelog->getDownload(), 'end download');

« previous php.pear.cvs (#32042) next »