cvs: pear-core /tests/PEAR_Command_Package/convert test_fail.phpt
| From: | Greg Beaver | Date: | Mon, 22 Aug 2005 04:11:14 +0000 |
| Subject: | cvs: pear-core /tests/PEAR_Command_Package/convert test_fail.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-3706@lists.php.net to get a copy of this message | ||
cellog Mon Aug 22 00:11:14 2005 EDT
Modified files:
/pear-core/tests/PEAR_Command_Package/convert test_fail.phpt
Log:
update to current cvs
http://cvs.php.net/diff.php/pear-core/tests/PEAR_Command_Package/convert/test_fail.phpt?r1=1.1&r2=1.2&ty=u
Index: pear-core/tests/PEAR_Command_Package/convert/test_fail.phpt
diff -u pear-core/tests/PEAR_Command_Package/convert/test_fail.phpt:1.1
pear-core/tests/PEAR_Command_Package/convert/test_fail.phpt:1.2
--- pear-core/tests/PEAR_Command_Package/convert/test_fail.phpt:1.1 Mon Dec 27 01:57:12 2004
+++ pear-core/tests/PEAR_Command_Package/convert/test_fail.phpt Mon Aug 22 00:11:14 2005
@@ -18,8 +18,6 @@
$temp_path . DIRECTORY_SEPARATOR . 'nosummary.xml');
$e = $command->run('convert', array(), array($temp_path . DIRECTORY_SEPARATOR .
'invalid.xml'));
$phpunit->assertErrors(array(
- array('package' => 'PEAR_PackageFile_v2', 'message' =>
'File "foo.php" in directory "<dir name="/">" has invalid
role "php", should be one of data, doc, script, src, test'),
- array('package' => 'PEAR_PackageFile_v2', 'message' =>
'File "validv1.xml" in directory "<dir name="/">" has
invalid role "php", should be one of data, doc, script, src, test'),
array('package' => 'PEAR_PackageFile_v2', 'message' =>
'Invalid tag order in <extsrcrelease>, found <installconditions> expected one of
"configureoption, binarypackage"'),
), 'invalid packagexml 1');
$phpunit->assertEquals(array (
@@ -30,16 +28,6 @@
),
1 =>
array (
- 'info' => 'File "validv1.xml" in directory "<dir
name="/">" has invalid role "php", should be one of data, doc, script,
src, test',
- 'cmd' => 'no command',
- ),
- 2 =>
- array (
- 'info' => 'File "foo.php" in directory "<dir
name="/">" has invalid role "php", should be one of data, doc, script,
src, test',
- 'cmd' => 'no command',
- ),
- 3 =>
- array (
'info' => 'PEAR_Packagefile_v2::toPackageFile: invalid package.xml',
'cmd' => 'no command',
),
@@ -54,6 +42,11 @@
$phpunit->assertEquals(array (
0 =>
array (
+ 0 => 0,
+ 1 => 'ERROR: No summary found',
+ ),
+ 1 =>
+ array (
'info' => 'No summary found',
'cmd' => 'no command',
),