cvs: pear /PEAR_PackageFileManager/tests PEAR_PackageFileManager_File_TestCase_dirList.php testsuite.php
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList test_bug1217.phpt test_invalid.phpt test_valid.phpt test_valid_addhiddenfiles.phpt
test_valid_with_ignore.phpt test_valid_with_include.phpt /PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest .test test1.txt
test2.txt /PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/blarfoo blartest.txt
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo test11.txt test12.txt
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/subsubfoo boo.txt
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/testCVS testEntries testEntries.Extra
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217 0 firstfile.php fourthfile.php secondfile.php

From: Date: Mon, 28 Mar 2005 00:01:16 +0000
Subject: cvs: pear /PEAR_PackageFileManager/tests PEAR_PackageFileManager_File_TestCase_dirList.php testsuite.php
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList test_bug1217.phpt test_invalid.phpt test_valid.phpt test_valid_addhiddenfiles.phpt
test_valid_with_ignore.phpt test_valid_with_include.phpt /PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest .test test1.txt
test2.txt /PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/blarfoo blartest.txt
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo test11.txt test12.txt
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/subsubfoo boo.txt
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/testCVS testEntries testEntries.Extra
/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217 0 firstfile.php fourthfile.php secondfile.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30699@lists.php.net to get a copy of this message
cellog Sun Mar 27 19:01:16 2005 EDT Added files: /pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest .test test1.txt test2.txt /pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/blarfoo blartest.txt /pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/subsubfoo boo.txt /pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo test11.txt test12.txt /pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/testCVS testEntries testEntries.Extra /pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList test_bug1217.phpt test_invalid.phpt test_valid.phpt test_valid_addhiddenfiles.phpt test_valid_with_ignore.phpt test_valid_with_include.phpt /pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217 0 firstfile.php fourthfile.php secondfile.php Removed files: /pear/PEAR_PackageFileManager/tests PEAR_PackageFileManager_File_TestCase_dirList.php Modified files: /pear/PEAR_PackageFileManager/tests testsuite.php Log: convert more tests from phpunit to phpt

http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/tests/testsuite.php?r1=1.20&r2=1.21&ty=u Index: pear/PEAR_PackageFileManager/tests/testsuite.php diff -u pear/PEAR_PackageFileManager/tests/testsuite.php:1.20 pear/PEAR_PackageFileManager/tests/testsuite.php:1.21 --- pear/PEAR_PackageFileManager/tests/testsuite.php:1.20 Sat Mar 26 12:40:35 2005 +++ pear/PEAR_PackageFileManager/tests/testsuite.php Sun Mar 27 19:01:15 2005 @@ -4,7 +4,7 @@ * HTML output for PHPUnit suite tests. * * Copied for PEAR_PackageFileManager from HTML_CSS - * @version $Id: testsuite.php,v 1.20 2005/03/26 17:40:35 cellog Exp $ + * @version $Id: testsuite.php,v 1.21 2005/03/28 00:01:15 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_dirList', 'PEAR_PackageFileManager_File_TestCase_getFileList', 'PEAR_PackageFileManager_File_TestCase_setupDirs', 'PEAR_PackageFileManager_File_TestCase_setDir', http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/.test?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/.test +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/.test http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/test1.txt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/test1.txt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/test1.txt http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/test2.txt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/test2.txt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/test2.txt http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/blarfoo/blartest.txt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/blarfoo/blartest.txt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/blarfoo/blartest.txt http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/subsubfoo/boo.txt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/subsubfoo/boo.txt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/subsubfoo/boo.txt http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/test11.txt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/test11.txt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/test11.txt http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/test12.txt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/test12.txt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/subfoo/test12.txt http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/testCVS/testEntries.Extra?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/testCVS/testEntries.Extra +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/footest/testCVS/testEntries.Extra D/blarfoo/// D/subfoo/// /test1.txt/// /test2.txt/// /.test/// http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217.phpt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217.phpt --TEST-- PEAR_PackageFileManager_File->dirList, bug #1217 test --SKIPIF-- --FILE-- <?php require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $packagexml->_options['addhiddenfiles'] = false; $packagexml->_setupIgnore(false, 0); $packagexml->_setupIgnore(false, 1); $res = $packagexml->dirList(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_bug1217'); $phpunit->assertEquals( array( dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_bug1217/0', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_bug1217/firstfile.php', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_bug1217/fourthfile.php', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test_bug1217/secondfile.php', ), $res, 'incorrect dir structure'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_invalid.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_invalid.phpt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_invalid.phpt --TEST-- PEAR_PackageFileManager_File->dirList, source base directory doesn't exist --SKIPIF-- --FILE-- <?php require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $res = $packagexml->dirList('fargusblurbe[]--#/"'); $phpunit->assertErrors( array('package' => 'PEAR_Error', 'message' => 'PEAR_PackageFileManager Error: Package source base directory ' . '"fargusblurbe[]--#/"" doesn\'t exist or isn\'t a directory') , 'error' ); $phpunit->assertIsa('PEAR_Error', $res, 'no error'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid.phpt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid.phpt --TEST-- PEAR_PackageFileManager_File->dirList, valid listing --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->_setupIgnore(false, 0); $packagexml->_setupIgnore(false, 1); $res = $packagexml->dirList(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest'); $phpunit->assertEquals( array( dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/blarfoo/blartest.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/subfoo/subsubfoo/boo.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/subfoo/test11.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/subfoo/test12.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/test1.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/test2.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/testCVS/testEntries', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/testCVS/testEntries.Extra', ), $res, 'incorrect dir structure'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid_addhiddenfiles.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid_addhiddenfiles.phpt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid_addhiddenfiles.phpt --TEST-- PEAR_PackageFileManager_File->dirList, valid listing, addhiddenfiles 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'] = true; $packagexml->_setupIgnore(false, 0); $packagexml->_setupIgnore(false, 1); $res = $packagexml->dirList(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest'); $phpunit->assertEquals( array( dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/.test', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/blarfoo/blartest.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/subfoo/subsubfoo/boo.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/subfoo/test11.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/subfoo/test12.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/test1.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/test2.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/testCVS/testEntries', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/testCVS/testEntries.Extra', ), $res, 'incorrect dir structure'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid_with_ignore.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid_with_ignore.phpt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid_with_ignore.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->_setupIgnore(array('blar*'), 1); $packagexml->_setupIgnore(false, 0); $res = $packagexml->dirList(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest'); $phpunit->assertEquals( array( dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/subfoo/subsubfoo/boo.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/subfoo/test11.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/subfoo/test12.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/test1.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/test2.txt', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/testCVS/testEntries', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/testCVS/testEntries.Extra', ), $res, 'incorrect dir structure'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid_with_include.phpt?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid_with_include.phpt +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_valid_with_include.phpt --TEST-- PEAR_PackageFileManager_File->dirList, valid listing, include option --SKIPIF-- --FILE-- <?php require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $packagexml->_options['addhiddenfiles'] = false; $packagexml->_setupIgnore(array('blar*'), 0); $packagexml->_setupIgnore(false, 1); $res = $packagexml->dirList(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest'); $phpunit->assertEquals( array( dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footest/blarfoo/blartest.txt', ), $res, 'incorrect dir structure'); echo 'tests done'; ?> --EXPECT-- tests done http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217/firstfile.php?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217/firstfile.php +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217/firstfile.php http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217/fourthfile.php?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217/fourthfile.php +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217/fourthfile.php http://cvs.php.net/co.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217/secondfile.php?r=1.1&p=1 Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217/secondfile.php +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/dirList/test_bug1217/secondfile.php
« previous php.pear.cvs (#30699) next »