cvs: pear-core /tests/PEAR_Command_Install/upgrade-all test.phpt /tests/PEAR_Downloader_Package test_initialize_abstractpackage_discover.phpt
/tests/PEAR_Downloader_Package/test_initialize_downloadurl testfoo-1.0.tgz /tests/PEAR_Installer test_install_complexlocalpackage2_force.phpt
test_install_complexlocalpackage2_ignore-errors.phpt test_install_complexlocalpackage2_ignore-errorssoft.phpt
| From: | Greg Beaver | Date: | Sat, 18 Apr 2009 19:36:20 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Command_Install/upgrade-all test.phpt /tests/PEAR_Downloader_Package test_initialize_abstractpackage_discover.phpt /tests/PEAR_Downloader_Package/test_initialize_downloadurl testfoo-1.0.tgz /tests/PEAR_Installer test_install_complexlocalpackage2_force.phpt test_install_complexlocalpackage2_ignore-errors.phpt test_install_complexlocalpackage2_ignore-errorssoft.phpt |
||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8354@lists.php.net to get a copy of this message | ||
cellog Sat Apr 18 19:36:20 2009 UTC
Added files:
/pear-core/tests/PEAR_Downloader_Package/test_initialize_downloadurl
testfoo-1.0.tgz
Modified files:
/pear-core/tests/PEAR_Command_Install/upgrade-all test.phpt
/pear-core/tests/PEAR_Downloader_Package
test_initialize_abstractpackage_discover.phpt
/pear-core/tests/PEAR_Installer
test_install_complexlocalpackage2_force.phpt
test_install_complexlocalpackage2_ignore-errors.phpt
test_install_complexlocalpackage2_ignore-errorssoft.phpt
Log:
all tests pass with this commit
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt?r1=1.15&r2=1.16&diff_format=u
Index: pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt
diff -u pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.15
pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.16
--- pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt:1.15 Mon Feb 23 23:00:42 2009
+++ pear-core/tests/PEAR_Command_Install/upgrade-all/test.phpt Sat Apr 18 19:36:20 2009
@@ -10230,9 +10230,12 @@
$command->run('upgrade-all', array(), array());
$phpunit->assertNoErrors('after upgrade');
+
+$log = array_slice($fakelog->getLog(), 0, 5);
+usort($log, function($a, $b) {return strnatcasecmp($a['info']['data'],
$b['info']['data']);});
+
$phpunit->assertEquals(
array (
- 0 =>
array (
'info' =>
array (
@@ -10240,46 +10243,35 @@
),
'cmd' => 'upgrade-all',
),
- 1 =>
array (
'info' =>
array (
- 'data' => 'Will upgrade channel://pear.php.net/xml_rpc',
+ 'data' => 'Will upgrade channel://pear.php.net/net_sieve',
),
'cmd' => 'upgrade-all',
),
- 2 =>
array (
'info' =>
array (
- 'data' => 'Will upgrade channel://pear.php.net/net_sieve',
+ 'data' => 'Will upgrade channel://pear.php.net/text_highlighter',
),
'cmd' => 'upgrade-all',
),
- 3 =>
array (
'info' =>
array (
- 'data' => 'Will upgrade channel://pear.php.net/text_highlighter',
+ 'data' => 'Will upgrade channel://pear.php.net/text_wiki',
),
'cmd' => 'upgrade-all',
),
- 4 =>
array (
'info' =>
array (
- 'data' => 'Will upgrade channel://pear.php.net/text_wiki',
+ 'data' => 'Will upgrade channel://pear.php.net/xml_rpc',
),
'cmd' => 'upgrade-all',
),
- 5 =>
- array (
- 0 => 3,
- 1 => 'Notice: package "pear/File" required dependency "pear/PEAR"
will not be automatically downloaded',
- ),
-), array_slice($fakelog->getLog(), 0, 6),
-'upgrade-all log');
-
+ ), $log, 'same log entries');
$reg = &$config->getRegistry();
$phpunit->assertEquals('1.1.0RC5', $reg->packageInfo('File',
'version'), 'File');
$phpunit->assertEquals('1.1.1', $reg->packageInfo('Net_Sieve',
'version'), 'Net_Sieve');
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Downloader_Package/test_initialize_abstractpackage_discover.phpt?r1=1.11&r2=1.12&diff_format=u
Index: pear-core/tests/PEAR_Downloader_Package/test_initialize_abstractpackage_discover.phpt
diff -u pear-core/tests/PEAR_Downloader_Package/test_initialize_abstractpackage_discover.phpt:1.11
pear-core/tests/PEAR_Downloader_Package/test_initialize_abstractpackage_discover.phpt:1.12
--- pear-core/tests/PEAR_Downloader_Package/test_initialize_abstractpackage_discover.phpt:1.11 Sat
Jan 24 23:43:36 2009
+++ pear-core/tests/PEAR_Downloader_Package/test_initialize_abstractpackage_discover.phpt Sat Apr 18
19:36:20 2009
@@ -10,7 +10,7 @@
<?php
$dir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
require_once $dir . 'setup.php.inc';
-$pathtopackagexml = $dir . 'test_initialize_downloadurl'. DIRECTORY_SEPARATOR .
'test-1.0.tgz';
+$pathtopackagexml = $dir . 'test_initialize_downloadurl'. DIRECTORY_SEPARATOR .
'testfoo-1.0.tgz';
$pathtochannelxml = $dir . 'test_initialize_abstractpackage_discover'.
DIRECTORY_SEPARATOR . 'channel.xml';
$csize = filesize($pathtochannelxml);
@@ -25,7 +25,7 @@
<c>pear.foo.com</c>
<r>
<v>1.0</v>
- <s>beta</s>
+ <s>stable</s>
<m>4.3</m>
</r>
</a>', 'text/xml');
@@ -38,7 +38,7 @@
<c>pear.foo.com</c>
<r>
<v>1.0</v>
- <s>beta</s>
+ <s>stable</s>
</r>
</a>', 'text/xml');
@@ -72,7 +72,15 @@
<x xlink:href="package.1.0.xml"/>
</r>', 'text/xml');
-$pearweb->addRESTConfig("http://pear.foo.com/rest/r/test/deps.1.0.txt",
'b:0;', 'text/plain');
+$pearweb->addRESTConfig("http://pear.foo.com/rest/r/test/deps.1.0.txt",
serialize(
+ array(
+ 'required' =>
+ array(
+ 'php' => '4.0.0',
+ 'pearinstaller' => '1.4.0b1',
+ )
+ )
+ ), 'text/plain');
$dp = &newDownloaderPackage(array());
$dp->_downloader->config->set('auto_discover', 1);
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_force.phpt?r1=1.15&r2=1.16&diff_format=u
Index: pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_force.phpt
diff -u pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_force.phpt:1.15
pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_force.phpt:1.16
--- pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_force.phpt:1.15 Tue Feb 10
02:35:23 2009
+++ pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_force.phpt Sat Apr 18 19:36:20
2009
@@ -271,10 +271,6 @@
$phpunit->assertEquals(0, count($after), 'after getdp count');
$phpunit->assertEquals(array (
array (
- 0 => 1,
- 1 => 'WARNING: failed to download smork/Foobar within preferred state
"stable", will instead download version 1.5.0a1, stability "alpha"',
- ),
- array (
0 => 3,
1 => 'Downloading "http://www.example.com/Bar-1.5.2.tgz"',
),
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errors.phpt?r1=1.14&r2=1.15&diff_format=u
Index: pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errors.phpt
diff -u pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errors.phpt:1.14
pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errors.phpt:1.15
--- pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errors.phpt:1.14 Wed Mar
4 15:52:04 2009
+++ pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errors.phpt Sat Apr 18
19:36:20 2009
@@ -83,7 +83,7 @@
http://pear.php.net/dtd/rest.allreleases.xsd">
<p>Foobar</p>
<c>smork</c>
- <r><v>1.5.0a1</v><s>stable</s></r>
+ <r><v>1.5.0a1</v><s>alpha</s></r>
</a>', 'text/xml');
$pearweb->addRESTConfig("http://smork/rest/r/foobar/deps.1.5.0a1.txt",
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errorssoft.phpt?r1=1.11&r2=1.12&diff_format=u
Index: pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errorssoft.phpt
diff -u pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errorssoft.phpt:1.11
pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errorssoft.phpt:1.12
--- pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errorssoft.phpt:1.11 Tue
Feb 10 02:35:23 2009
+++ pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errorssoft.phpt Sat Apr
18 19:36:20 2009
@@ -83,7 +83,7 @@
http://pear.php.net/dtd/rest.allreleases.xsd">
<p>Foobar</p>
<c>smork</c>
- <r><v>1.5.0a1</v><s>stable</s></r>
+ <r><v>1.5.0a1</v><s>alpha</s></r>
</a>', 'text/xml');
$pearweb->addRESTConfig("http://smork/rest/r/foobar/deps.1.5.0a1.txt",