cvs: pear /PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/setupDirs test_concept.phpt

From: Date: Mon, 28 Mar 2005 03:54:16 +0000
Subject: cvs: pear /PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/setupDirs test_concept.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30708@lists.php.net to get a copy of this message
cellog Sun Mar 27 22:54:16 2005 EDT Modified files: /pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/setupDirs test_concept.phpt Log: fix test http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/setupDirs/test_concept.phpt?r1=1.1&r2=1.2&ty=u Index: pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/setupDirs/test_concept.phpt diff -u pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/setupDirs/test_concept.phpt:1.1 pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/setupDirs/test_concept.phpt:1.2 --- pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/setupDirs/test_concept.phpt:1.1 Sun Mar 27 22:48:38 2005 +++ pear/PEAR_PackageFileManager/tests/PEAR_PackageFileManager_File/setupDirs/test_concept.phpt Sun Mar 27 22:54:15 2005 @@ -94,60 +94,79 @@ $struc[$key] = $ind; } $phpunit->assertEquals( - 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/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') - ), - 'subfoo' => - array( - array('file' => 'test11.txt', - 'ext' => 'txt', - 'path' => 'subfoo/test11.txt', - 'fullpath' =>dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'footest/subfoo/test11.txt'), - array('file' => 'test12.txt', - 'ext' => 'txt', - 'path' => 'subfoo/test12.txt', - 'fullpath' =>dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'footest/subfoo/test12.txt'), - ), - '/' => - array( - array('file' => 'test1.txt', - 'ext' => 'txt', - 'path' => 'test1.txt', - 'fullpath' =>dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'footest/test1.txt'), - array('file' => 'test2.txt', - 'ext' => 'txt', - 'path' => 'test2.txt', - 'fullpath' =>dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'footest/test2.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', - ), - ), - ), $struc, 'wrong sorted structure'); +array ( + '/' => + array ( + 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', + ), + ), + 'blarfoo' => + array ( + 0 => + 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', + ), + ), + 'subfoo/subsubfoo' => + array ( + 0 => + 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', + ), + 1 => + array ( + 'file' => 'testEntries.Extra', + 'ext' => 'Extra', + 'path' => 'testCVS/testEntries.Extra', + 'fullpath' => dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'footest/testCVS/testEntries.Extra', + ), + ), +), $struc, 'wrong sorted structure'); echo 'tests done'; ?> --EXPECT--

« previous php.pear.cvs (#30708) next »