summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2004-04-30 03:35:43 +0000
committerGreg Beaver <cellog@php.net>2004-04-30 03:35:43 +0000
commit56d7d95c67bc5647b86ce40c596fa753a560f9d5 (patch)
tree52e2f06f46908b38ab250ff7bf803dfe6bb837a7 /pear
parente349a5e41dbb50670681cd9fb2474ea5a6e4a26c (diff)
downloadphp-git-56d7d95c67bc5647b86ce40c596fa753a560f9d5.tar.gz
hopefully fix this test for all cases
Diffstat (limited to 'pear')
-rw-r--r--pear/tests/pear_packager.phpt76
1 files changed, 18 insertions, 58 deletions
diff --git a/pear/tests/pear_packager.phpt b/pear/tests/pear_packager.phpt
index 9d584b2609..5b504da118 100644
--- a/pear/tests/pear_packager.phpt
+++ b/pear/tests/pear_packager.phpt
@@ -94,16 +94,16 @@ $archive1c = &new Archive_Tar(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree
$x1 = $archive1->listContent();
$x2 = $archive1c->listContent();
for($i=0;$i<count($x1); $i++) {
- if ($x1[$i]['filename'] == 'package.xml') {
+// if ($x1[$i]['filename'] == 'package.xml') {
unset($x1[$i]['mtime']);
unset($x1[$i]['checksum']);
- }
+// }
}
for($i=0;$i<count($x2); $i++) {
- if ($x2[$i]['filename'] == 'package.xml') {
+// if ($x2[$i]['filename'] == 'package.xml') {
unset($x2[$i]['mtime']);
unset($x2[$i]['checksum']);
- }
+// }
}
var_dump($x1, $x2);
$archive1 = &new Archive_Tar(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pkg2-1.0.tgz');
@@ -112,16 +112,16 @@ $archive1c = &new Archive_Tar(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'dirtree
$x1 = $archive1->listContent();
$x2 = $archive1c->listContent();
for($i=0;$i<count($x1); $i++) {
- if ($x1[$i]['filename'] == 'package.xml') {
+// if ($x1[$i]['filename'] == 'package.xml') {
unset($x1[$i]['mtime']);
unset($x1[$i]['checksum']);
- }
+// }
}
for($i=0;$i<count($x2); $i++) {
- if ($x2[$i]['filename'] == 'package.xml') {
+// if ($x2[$i]['filename'] == 'package.xml') {
unset($x2[$i]['mtime']);
unset($x2[$i]['checksum']);
- }
+// }
}
var_dump($x1, $x2);
@@ -183,9 +183,7 @@ array(3) {
string(0) ""
}
[1]=>
- array(8) {
- ["checksum"]=>
- int(5592)
+ array(6) {
["filename"]=>
string(38) "pkg1-1.0/multiplepackages/pkg1file.php"
["mode"]=>
@@ -196,15 +194,11 @@ array(3) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071119017)
["typeflag"]=>
string(0) ""
}
[2]=>
- array(8) {
- ["checksum"]=>
- int(4534)
+ array(6) {
["filename"]=>
string(28) "pkg1-1.0/pkg1/randomfile.php"
["mode"]=>
@@ -215,8 +209,6 @@ array(3) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071120110)
["typeflag"]=>
string(0) ""
}
@@ -238,9 +230,7 @@ array(3) {
string(0) ""
}
[1]=>
- array(8) {
- ["checksum"]=>
- int(5592)
+ array(6) {
["filename"]=>
string(38) "pkg1-1.0/multiplepackages/pkg1file.php"
["mode"]=>
@@ -251,15 +241,11 @@ array(3) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071119017)
["typeflag"]=>
string(0) ""
}
[2]=>
- array(8) {
- ["checksum"]=>
- int(4534)
+ array(6) {
["filename"]=>
string(28) "pkg1-1.0/pkg1/randomfile.php"
["mode"]=>
@@ -270,8 +256,6 @@ array(3) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071120110)
["typeflag"]=>
string(0) ""
}
@@ -293,9 +277,7 @@ array(4) {
string(0) ""
}
[1]=>
- array(8) {
- ["checksum"]=>
- int(5600)
+ array(6) {
["filename"]=>
string(38) "pkg2-1.0/multiplepackages/pkg2file.php"
["mode"]=>
@@ -306,15 +288,11 @@ array(4) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071119030)
["typeflag"]=>
string(0) ""
}
[2]=>
- array(8) {
- ["checksum"]=>
- int(5066)
+ array(6) {
["filename"]=>
string(32) "pkg2-1.0/nestedroot/rootfile.php"
["mode"]=>
@@ -325,15 +303,11 @@ array(4) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071119266)
["typeflag"]=>
string(0) ""
}
[3]=>
- array(8) {
- ["checksum"]=>
- int(7193)
+ array(6) {
["filename"]=>
string(53) "pkg2-1.0/nestedroot/emptydir/nesteddir/nestedfile.php"
["mode"]=>
@@ -344,8 +318,6 @@ array(4) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071119310)
["typeflag"]=>
string(0) ""
}
@@ -367,9 +339,7 @@ array(4) {
string(0) ""
}
[1]=>
- array(8) {
- ["checksum"]=>
- int(5600)
+ array(6) {
["filename"]=>
string(38) "pkg2-1.0/multiplepackages/pkg2file.php"
["mode"]=>
@@ -380,15 +350,11 @@ array(4) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071119030)
["typeflag"]=>
string(0) ""
}
[2]=>
- array(8) {
- ["checksum"]=>
- int(5066)
+ array(6) {
["filename"]=>
string(32) "pkg2-1.0/nestedroot/rootfile.php"
["mode"]=>
@@ -399,15 +365,11 @@ array(4) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071119266)
["typeflag"]=>
string(0) ""
}
[3]=>
- array(8) {
- ["checksum"]=>
- int(7193)
+ array(6) {
["filename"]=>
string(53) "pkg2-1.0/nestedroot/emptydir/nesteddir/nestedfile.php"
["mode"]=>
@@ -418,8 +380,6 @@ array(4) {
int(0)
["size"]=>
int(0)
- ["mtime"]=>
- int(1071119310)
["typeflag"]=>
string(0) ""
}