cvs: pear /PEAR_PackageFileManager/tests PEAR_PackageFileManager_XMLOutput_TestCase_1.php testsuite.php
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_XMLOutput test_valid1.phpt
| From: | Greg Beaver | Date: | Mon, 28 Mar 2005 05:59:41 +0000 |
| Subject: | cvs: pear /PEAR_PackageFileManager/tests PEAR_PackageFileManager_XMLOutput_TestCase_1.php testsuite.php /PEAR_PackageFileManager/tests/PEAR_PackageFileManager_XMLOutput test_valid1.phpt |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-30721@lists.php.net to get a copy of this message | ||
cellog Mon Mar 28 00:59:41 2005 EDT
Added files:
/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_XMLOutput
test_valid1.phpt
Removed files:
/pear/PEAR_PackageFileManager/tests
PEAR_PackageFileManager_XMLOutput_TestCase_1.php
Modified files:
/pear/PEAR_PackageFileManager/tests testsuite.php
Log:
more conversion of phpunit -> phpt
http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/tests/testsuite.php?r1=1.32&r2=1.33&ty=u
Index: pear/PEAR_PackageFileManager/tests/testsuite.php
diff -u pear/PEAR_PackageFileManager/tests/testsuite.php:1.32
pear/PEAR_PackageFileManager/tests/testsuite.php:1.33
--- pear/PEAR_PackageFileManager/tests/testsuite.php:1.32 Mon Mar 28 00:54:46 2005
+++ pear/PEAR_PackageFileManager/tests/testsuite.php Mon Mar 28 00:59:40 2005
@@ -4,7 +4,7 @@
* HTML output for PHPUnit suite tests.
*
* Copied for PEAR_PackageFileManager from HTML_CSS
- * @version $Id: testsuite.php,v 1.32 2005/03/28 05:54:46 cellog Exp $
+ * @version $Id: testsuite.php,v 1.33 2005/03/28 05:59:40 cellog Exp $
* @author Laurent Laville <pear@laurent-laville.org>
* @package HTML_CSS
*/
@@ -51,7 +51,6 @@
$testcases = array(
'PEAR_PackageFileManager_TestCase_setOptions',
'PEAR_PackageFileManager_TestCase_addDependency',
- 'PEAR_PackageFileManager_XMLOutput_TestCase_1',
);
http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_XMLOutput/test_valid1.phpt?r=1.1&p=1
Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_XMLOutput/test_valid1.phpt
+++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_XMLOutput/test_valid1.phpt
--TEST--
PEAR_PackageFileManager_XMLOutput
--SKIPIF--
--FILE--
<?php
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc';
require_once 'PEAR/PackageFileManager/XMLOutput.php';
$packagexml = new PEAR_PackageFileManager_XMLOutput;
$arr =
array(
'/' =>
array(
'baseinstalldir' => 'frunk',
'##files' =>
array(
'tired' => array('role' => 'script'),
'first' =>
array(
'##files' =>
array(
'first.php' =>
array(
'role' => 'php',
'install-as' => 'flop',
'platform' => 'windows',
'md5sum' => '25',
'replacements' =>
array(
array(
'from' => 'blah',
'to' => 'version',
'type' => 'package-info'
)
),
),
'second.dat' =>
array(
'role' => 'data',
),
'another' =>
array(
'##files' =>
array(
'third' =>
array(
'role' => 'test'
)
)
)
),
),
'second' =>
array(
'##files' =>
array(
'nested' =>
array(
'##files' =>
array(
'another' => array(
'baseinstalldir' => '/')
)
)
)
),
// directory named files
'files' =>
array(
'##files' =>
array(
'wow' => array('role' => 'doc')
)
),
)
)
);
$phpunit->assertEquals(array(str_replace("\r", '', ' <dir
baseinstalldir="frunk" name="/">
<file role="script" name="tired"/>
<dir name="first">
<file role="php" md5sum="25" platform="windows"
install-as="flop" name="first.php">
<replace from="blah" to="version"
type="package-info"/>
</file>
<file role="data" name="second.dat"/>
<dir name="another">
<file role="test" name="third"/>
</dir> <!-- first/another -->
</dir> <!-- first -->
<dir name="second">
<dir name="nested">
<file baseinstalldir="/" name="another"/>
</dir> <!-- second/nested -->
</dir> <!-- second -->
<dir name="files">
<file role="doc" name="wow"/>
</dir> <!-- files -->
</dir> <!-- / -->
')), array($packagexml->_doFileList('', $arr, '/')), 'test');
echo 'tests done';
?>
--EXPECT--
tests done