svn: /pear/pear-core/trunk/tests/PEAR_Command_Package/package-dependencies/ test_fail.phpt
| From: | Helgi Þormar Þorbjörnsson | Date: | Sun, 02 Aug 2009 15:42:17 +0000 |
| Subject: | svn: /pear/pear-core/trunk/tests/PEAR_Command_Package/package-dependencies/ test_fail.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-56840@lists.php.net to get a copy of this message | ||
dufuz Sun, 02 Aug 2009 15:42:17 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286675
Log:
Cosmetics
Changed paths:
U pear/pear-core/trunk/tests/PEAR_Command_Package/package-dependencies/test_fail.phpt
Modified: pear/pear-core/trunk/tests/PEAR_Command_Package/package-dependencies/test_fail.phpt
===================================================================
--- pear/pear-core/trunk/tests/PEAR_Command_Package/package-dependencies/test_fail.phpt 2009-08-02
15:41:30 UTC (rev 286674)
+++ pear/pear-core/trunk/tests/PEAR_Command_Package/package-dependencies/test_fail.phpt 2009-08-02
15:42:17 UTC (rev 286675)
@@ -10,6 +10,7 @@
<?php
error_reporting(1803);
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc';
+
$e = $command->run('package-dependencies', array(), array($temp_path .
DIRECTORY_SEPARATOR . 'invalid.xml'));
$phpunit->assertErrors(array(
array('package' => 'PEAR_Error', 'message' => 'Cannot
open \'' .
@@ -20,6 +21,7 @@
. '\' for parsing'),
), 'file not found');
$phpunit->assertEquals(array (), $fakelog->getLog(), 'log 1');
+
$e = $command->run('package-dependencies', array(), array(dirname(__FILE__) .
DIRECTORY_SEPARATOR .
'packagefiles' . DIRECTORY_SEPARATOR . 'packageinvalidv1.xml'));
$phpunit->assertErrors(array(
@@ -33,13 +35,15 @@
. '" failed'),
array('package' => 'PEAR_PackageFile_v1', 'message' =>
'No summary found'),
), 'validation errors');
+
$phpunit->assertEquals(array (
- 0 =>
+ 0 =>
array (
0 => 0,
1 => 'ERROR: No summary found',
),
), $fakelog->getLog(), 'log 2');
+
echo 'tests done';
?>
--CLEAN--