diff options
author | Greg Beaver <cellog@php.net> | 2008-10-12 23:32:50 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-10-12 23:32:50 +0000 |
commit | 5bc1122056f3c2aef8615b4da3ba6d5b944eb333 (patch) | |
tree | 88731d122850924e255d6e808bbf4e3a8747c649 /ext/phar/tests | |
parent | 8b793f427491383af7e5e521f54b618c69dea683 (diff) | |
download | php-git-5bc1122056f3c2aef8615b4da3ba6d5b944eb333.tar.gz |
fix faulty tests
Diffstat (limited to 'ext/phar/tests')
-rw-r--r-- | ext/phar/tests/tar/rmdir.phpt | 3 | ||||
-rw-r--r-- | ext/phar/tests/zip/rmdir.phpt | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ext/phar/tests/tar/rmdir.phpt b/ext/phar/tests/tar/rmdir.phpt index d08e521614..be037823d6 100644 --- a/ext/phar/tests/tar/rmdir.phpt +++ b/ext/phar/tests/tar/rmdir.phpt @@ -23,6 +23,7 @@ $files['a/x'] = 'a'; foreach ($files as $n => $file) { $tar->addFile($n, $file); } +$tar->mkdir('a'); $tar->close(); @@ -39,7 +40,7 @@ var_dump(rmdir($alias . '/a')); --EXPECTF-- a -Warning: rmdir(): phar error: Directory not empty in %srmdir.php on line 24 +Warning: rmdir(): phar error: Directory not empty in %srmdir.php on line %d bool(false) a bool(true) diff --git a/ext/phar/tests/zip/rmdir.phpt b/ext/phar/tests/zip/rmdir.phpt index 149f0e8d6b..c7ef9dacac 100644 --- a/ext/phar/tests/zip/rmdir.phpt +++ b/ext/phar/tests/zip/rmdir.phpt @@ -15,6 +15,7 @@ $phar = new Phar($fname); $phar->setStub("<?php Phar::mapPhar('hio'); __HALT_COMPILER(); ?>"); +$phar->addEmptyDir('a'); $phar['a/x'] = 'a'; $phar->stopBuffering(); @@ -31,7 +32,7 @@ var_dump(rmdir($alias . '/a')); --EXPECTF-- a -Warning: rmdir(): phar error: Directory not empty in %srmdir.php on line 16 +Warning: rmdir(): phar error: Directory not empty in %srmdir.php on line %d bool(false) a bool(true) |