cvs: pear-core /tests/PEAR_Installer test_install_complexlocalpackage2_ignore-errors.phpt
| From: | Helgi �ormar �orbj�rnsson | Date: | Wed, 04 Mar 2009 15:52:04 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Installer test_install_complexlocalpackage2_ignore-errors.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8224@lists.php.net to get a copy of this message | ||
dufuz Wed Mar 4 15:52:04 2009 UTC
Modified files:
/pear-core/tests/PEAR_Installer
test_install_complexlocalpackage2_ignore-errors.phpt
Log:
update tests
http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errors.phpt?r1=1.13&r2=1.14&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.13
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.13 Tue Feb
10 02:35:23 2009
+++ pear-core/tests/PEAR_Installer/test_install_complexlocalpackage2_ignore-errors.phpt Wed Mar 4
15:52:04 2009
@@ -247,19 +247,15 @@
$phpunit->assertEquals(array('file', 'info', 'pkg'),
array_keys($dlpackages[0]), 'indexes');
$phpunit->assertEquals(array('file', 'info', 'pkg'),
array_keys($dlpackages[1]), 'indexes 1');
-$phpunit->assertEquals($pathtopackagexml,
- $dlpackages[0]['file'], 'file');
-$phpunit->assertIsa('PEAR_PackageFile_v2',
- $dlpackages[0]['info'], 'info');
-$phpunit->assertEquals('PEAR1',
- $dlpackages[0]['pkg'], 'PEAR1');
+$phpunit->assertEquals($pathtopackagexml, $dlpackages[0]['file'], 'file');
+$phpunit->assertIsa('PEAR_PackageFile_v2', $dlpackages[0]['info'],
'info');
+$phpunit->assertEquals('PEAR1', $dlpackages[0]['pkg'],
'PEAR1');
$phpunit->assertEquals($result[1]->_downloader->getDownloadDir() . DIRECTORY_SEPARATOR .
'Bar-1.5.2.tgz',
$dlpackages[1]['file'], 'file 1');
-$phpunit->assertIsa('PEAR_PackageFile_v2',
- $dlpackages[1]['info'], 'info 1');
-$phpunit->assertEquals('Bar',
- $dlpackages[1]['pkg'], 'Bar');
+
+$phpunit->assertIsa('PEAR_PackageFile_v2', $dlpackages[1]['info'],
'info 1');
+$phpunit->assertEquals('Bar', $dlpackages[1]['pkg'],
'Bar');
$after = $dp->getDownloadedPackages();
$phpunit->assertEquals(0, count($after), 'after getdp count');
@@ -334,10 +330,12 @@
1 => 2213,
),
), $fakelog->getDownload(), 'download callback messages');
+
$installer->sortPackagesForInstall($result);
$installer->setDownloadedPackages($result);
$phpunit->assertNoErrors('set of downloaded packages');
$installer->setOptions($dp->getOptions());
+
$ret = &$installer->install($result[0], $dp->getOptions());
$phpunit->assertNoErrors('after install');
$phpunit->assertEquals(array (
@@ -684,8 +682,8 @@
),
'xsdversion' => '2.0',
), $ret, 'return of install');
-$phpunit->assertFileExists($temp_path . DIRECTORY_SEPARATOR . 'php' .
DIRECTORY_SEPARATOR . 'foo1.php',
- 'installed file');
+
+$phpunit->assertFileExists($temp_path . DIRECTORY_SEPARATOR . 'php' .
DIRECTORY_SEPARATOR . 'foo1.php', 'installed file');
$reg = &$config->getRegistry();
$info = $reg->packageInfo('Bar');
$phpunit->assertTrue(isset($info['_lastmodified']), 'lastmodified is set?');
@@ -936,13 +934,14 @@
'xsdversion' => '2.0',
)
, $ret, 'return of install 2');
-$phpunit->assertFileExists($temp_path . DIRECTORY_SEPARATOR . 'php' .
DIRECTORY_SEPARATOR . 'foo.php',
- 'installed file');
+
+$phpunit->assertFileExists($temp_path . DIRECTORY_SEPARATOR . 'php' .
DIRECTORY_SEPARATOR . 'foo.php', 'installed file');
$reg = &$config->getRegistry();
$info = $reg->packageInfo('PEAR1');
$phpunit->assertTrue(isset($info['_lastmodified']), 'lastmodified is set?');
unset($info['_lastmodified']);
$phpunit->assertEquals($ret, $info, 'test installation, PEAR1');
+
echo 'tests done';
?>
--CLEAN--