Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
The run-tests script executes the cleaning section separately and interfers
with the running test itself less. This fixes two failing tests on Windows
platforms.
  • Loading branch information
petk committed Feb 10, 2019
1 parent 4ae5691 commit 650a217
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions ext/zip/tests/oo_unchangeIndex.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ var_dump($zip->getNameIndex(0));
var_dump($zip->getCommentIndex(0));

var_dump(md5_file($file));

unlink($file);
?>
--CLEAN--
<?php
unlink(__DIR__.'/__tmp_oo_unchangeIndex.zip');
?>
--EXPECT--
string(32) "cb753d0a812b2edb386bdcbc4cd7d131"
Expand Down
6 changes: 4 additions & 2 deletions ext/zip/tests/oo_unchangeName.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ var_dump($zip->getNameIndex(0));
var_dump($zip->getCommentIndex(0));

var_dump(md5_file($file));

unlink($file);
?>
--CLEAN--
<?php
unlink(__DIR__.'/__tmp_oo_unchangeIndex.zip');
?>
--EXPECT--
string(32) "cb753d0a812b2edb386bdcbc4cd7d131"
Expand Down

0 comments on commit 650a217

Please sign in to comment.