]> granicus.if.org Git - php/commitdiff
- Fix paths in test
authorSteph Fox <sfox@php.net>
Tue, 29 Apr 2008 11:37:33 +0000 (11:37 +0000)
committerSteph Fox <sfox@php.net>
Tue, 29 Apr 2008 11:37:33 +0000 (11:37 +0000)
ext/phar/tests/badparameters.phpt

index 46eaf3f0ccb8594b7f4edb270fae034bccdee20c..ad61e033779662e81ed277d24e1800a97c48ddf8 100644 (file)
@@ -15,8 +15,8 @@ $a = new Phar(array());
 $a = new Phar(dirname(__FILE__) . '/files/frontcontroller10.phar');
 $a->convertToExecutable(array());
 $a->convertToData(array());
-$b = new PharData('whatever.tar');
-$c = new PharData('whatever.zip');
+$b = new PharData(dirname(__FILE__) . '/whatever.tar');
+$c = new PharData(dirname(__FILE__) . '/whatever.zip');
 $b->delete(array());
 try {
 $a->delete('oops');
@@ -143,6 +143,10 @@ echo $e->getMessage() . "\n";
 }
 ?>
 ===DONE===
+--CLEAN--
+<?php 
+unlink(dirname(__FILE__) . '/whatever.tar');
+?>
 --EXPECTF--
 Warning: Phar::mungServer() expects parameter 1 to be array, string given in %sbadparameters.php on line %d
 
@@ -207,4 +211,4 @@ Cannot set metadata, not possible with tar-based phar archives
 Warning: Phar::setMetadata() expects exactly 1 parameter, 2 given in %sbadparameters.php on line %d
 Write operations disabled by INI setting
 Cannot delete metadata, not possible with tar-based phar archives
-===DONE===
\ No newline at end of file
+===DONE===