cvs: pear /PEAR_PackageFileManager/tests PEAR_PackageFileManager_File_TestCase_getFileList.php testsuite.php
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/getFileList test_valid.phpt
| From: | Greg Beaver | Date: | Mon, 28 Mar 2005 03:06:19 +0000 |
| Subject: | cvs: pear /PEAR_PackageFileManager/tests PEAR_PackageFileManager_File_TestCase_getFileList.php testsuite.php /PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/getFileList test_valid.phpt |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-30701@lists.php.net to get a copy of this message | ||
cellog Sun Mar 27 22:06:19 2005 EDT
Added files:
/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/getFileList
test_valid.phpt
Removed files:
/pear/PEAR_PackageFileManager/tests
PEAR_PackageFileManager_File_TestCase_getFileList.php
Modified files:
/pear/PEAR_PackageFileManager/tests testsuite.php
Log:
more test conversion
http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/tests/testsuite.php?r1=1.21&r2=1.22&ty=u
Index: pear/PEAR_PackageFileManager/tests/testsuite.php
diff -u pear/PEAR_PackageFileManager/tests/testsuite.php:1.21
pear/PEAR_PackageFileManager/tests/testsuite.php:1.22
--- pear/PEAR_PackageFileManager/tests/testsuite.php:1.21 Sun Mar 27 19:01:15 2005
+++ pear/PEAR_PackageFileManager/tests/testsuite.php Sun Mar 27 22:06:18 2005
@@ -4,7 +4,7 @@
* HTML output for PHPUnit suite tests.
*
* Copied for PEAR_PackageFileManager from HTML_CSS
- * @version $Id: testsuite.php,v 1.21 2005/03/28 00:01:15 cellog Exp $
+ * @version $Id: testsuite.php,v 1.22 2005/03/28 03:06:18 cellog Exp $
* @author Laurent Laville <pear@laurent-laville.org>
* @package HTML_CSS
*/
@@ -59,7 +59,6 @@
'PEAR_PackageFileManager_TestCase_addDependency',
'PEAR_PackageFileManager_File_TestCase_getRegExpableSearchString',
'PEAR_PackageFileManager_File_TestCase_setupIgnore',
- 'PEAR_PackageFileManager_File_TestCase_getFileList',
'PEAR_PackageFileManager_File_TestCase_setupDirs',
'PEAR_PackageFileManager_File_TestCase_setDir',
'PEAR_PackageFileManager_XMLOutput_TestCase_1',
http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/getFileList/test_valid.phpt?r=1.1&p=1
Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/getFileList/test_valid.phpt
+++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/getFileList/test_valid.phpt
--TEST--
PEAR_PackageFileManager_File->dirList, valid listing, ignore option
--SKIPIF--
<?php
if (@file_exists(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'CVS')) {
echo 'skip cannot run in CVS';
}
?>
--FILE--
<?php
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc';
$packagexml->_options['addhiddenfiles'] = false;
$packagexml->_options['packagefile'] = 'package.xml';
$packagexml->_options['ignore'] =
$packagexml->_options['include'] = false;
$packagexml->_options['packagedirectory'] =
dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'footest/';
$res = $packagexml->getFileList();
$phpunit->assertEquals(
array(
'/' =>
array(
'blarfoo' =>
array(
array(
'file' => 'blartest.txt',
'ext' => 'txt',
'path' => 'blarfoo/blartest.txt',
'fullpath' => dirname(dirname(dirname(__FILE__))) .
DIRECTORY_SEPARATOR . 'footest/blarfoo/blartest.txt',
)
),
'subfoo' =>
array(
0 =>
array(
'file' => 'test11.txt',
'ext' => 'txt',
'path' => 'subfoo/test11.txt',
'fullpath' => dirname(dirname(dirname(__FILE__))) .
DIRECTORY_SEPARATOR . 'footest/subfoo/test11.txt',
),
1 =>
array(
'file' => 'test12.txt',
'ext' => 'txt',
'path' => 'subfoo/test12.txt',
'fullpath' => dirname(dirname(dirname(__FILE__))) .
DIRECTORY_SEPARATOR . 'footest/subfoo/test12.txt',
),
'subsubfoo' =>
array(
array(
'file' => 'boo.txt',
'ext' => 'txt',
'path' => 'subfoo/subsubfoo/boo.txt',
'fullpath' => dirname(dirname(dirname(__FILE__))) .
DIRECTORY_SEPARATOR . 'footest/subfoo/subsubfoo/boo.txt',
)
),
),
'testCVS' =>
array(
0 =>
array(
'file' => 'testEntries',
'ext' => '',
'path' => 'testCVS/testEntries',
'fullpath' => dirname(dirname(dirname(__FILE__))) .
DIRECTORY_SEPARATOR . 'footest/testCVS/testEntries',
),
array(
'file' => 'testEntries.Extra',
'ext' => 'Extra',
'path' => 'testCVS/testEntries.Extra',
'fullpath' => dirname(dirname(dirname(__FILE__))) .
DIRECTORY_SEPARATOR . 'footest/testCVS/testEntries.Extra',
),
),
0 =>
array(
'file' => 'test1.txt',
'ext' => 'txt',
'path' => 'test1.txt',
'fullpath' => dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR
. 'footest/test1.txt',
),
1 =>
array(
'file' => 'test2.txt',
'ext' => 'txt',
'path' => 'test2.txt',
'fullpath' => dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR
. 'footest/test2.txt',
),
)
),
$res,
'incorrect dir structure');
echo 'tests done';
?>
--EXPECT--
tests done