|
|
Choosing A Webhost: |
cvs: pear-core(PEAR_1_4) /tests/PEAR_Installer test_install_simplelocalpack: msg#00069php.pear.core
pajoye Tue Jun 20 02:50:21 2006 UTC Modified files: (Branch: PEAR_1_4) /pear-core/tests/PEAR_Installer test_install_simplelocalpackage.phpt Log: - fix text Greg, this is what I explained about the tests failing with 1.4.10 http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Installer/test_install_simplelocalpackage.phpt?r1=1.4&r2=1.4.2.1&diff_format=u Index: pear-core/tests/PEAR_Installer/test_install_simplelocalpackage.phpt diff -u pear-core/tests/PEAR_Installer/test_install_simplelocalpackage.phpt:1.4 pear-core/tests/PEAR_Installer/test_install_simplelocalpackage.phpt:1.4.2.1 --- pear-core/tests/PEAR_Installer/test_install_simplelocalpackage.phpt:1.4 Fri Feb 3 04:31:48 2006 +++ pear-core/tests/PEAR_Installer/test_install_simplelocalpackage.phpt Tue Jun 20 02:50:21 2006 @@ -30,14 +30,21 @@ $phpunit->assertEquals('PEAR', $dlpackages[0]['pkg'], 'PEAR'); $after = $dp->getDownloadedPackages(); + $phpunit->assertEquals(0, count($after), 'after getdp count'); -$phpunit->assertEquals(array ( - 0 => - array ( - 0 => 3, - 1 => '+ tmp dir created at ' . $dp->getDownloadDir(), - ), -), $fakelog->getLog(), 'log messages'); + +$dd_dir = $dp->getDownloadDir(); +if (!empty($dd_dir) && is_dir($dd_dir)) { + $phpunit->assertEquals(array (), $fakelog->getLog(), 'log messages'); +} else { + $phpunit->assertEquals(array ( + 0 => + array ( + 0 => 3, + 1 => '+ tmp dir created at ' . $dp->getDownloadDir(), + ), + ), $fakelog->getLog(), 'log messages'); +} $phpunit->assertEquals(array ( ), $fakelog->getDownload(), 'download callback messages'); @@ -223,4 +230,4 @@ require_once dirname(__FILE__) . '/teardown.php.inc'; ?> --EXPECT-- -tests done \ No newline at end of file +tests done -- PEAR CVS Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: 1.4.10RC1, prerelease tests, Pierre |
|---|---|
| Next by Date: | cvs: pear-core(PEAR_1_4) /tests/PEAR_Installer test_install_simplelocalpackage.phpt, Pierre-Alain Joye |
| Previous by Thread: | 1.4.10RC1, prerelease tests, Pierre |
| Next by Thread: | cvs: pear-core(PEAR_1_4) /tests/PEAR_Installer test_install_simplelocalpackage.phpt, Pierre-Alain Joye |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |