Permalink
Browse files

Fix paths in test

git-svn-id: https://svn.php.net/repository/pear/packages/Archive_Tar/trunk@324942 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 7b4e4ef commit 49003ff3954a0e8fb9c47bef3c88daa6cc4a87ac @mrook mrook committed Apr 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/invalidblock.phpt
@@ -5,16 +5,16 @@ test files that happen to contain the endblock
<?php
require_once dirname(__FILE__) . '/setup.php.inc';
$tar = new Archive_Tar(dirname(__FILE__) . '/testblock.tar.gz');
-$tar->add('testblock1');
-$tar->add('testblock2');
+$tar->add(dirname(__FILE__) . '/testblock1');
+$tar->add(dirname(__FILE__) . '/testblock2');
$tar = new Archive_Tar(dirname(__FILE__) . '/testblock.tar.gz');
$tar->listContent();
$phpunit->assertNoErrors('after');
echo 'tests done';
?>
--CLEAN--
<?php
-@unlink('testblock.tar.gz');
+@unlink(dirname(__FILE__) . '/testblock.tar.gz');
?>
--EXPECT--
tests done

0 comments on commit 49003ff

Please sign in to comment.