Skip to content

Commit 650a217

Browse files
committed
Fix failing tests
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.
1 parent 4ae5691 commit 650a217

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ext/zip/tests/oo_unchangeIndex.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ var_dump($zip->getNameIndex(0));
2929
var_dump($zip->getCommentIndex(0));
3030

3131
var_dump(md5_file($file));
32-
33-
unlink($file);
32+
?>
33+
--CLEAN--
34+
<?php
35+
unlink(__DIR__.'/__tmp_oo_unchangeIndex.zip');
3436
?>
3537
--EXPECT--
3638
string(32) "cb753d0a812b2edb386bdcbc4cd7d131"

ext/zip/tests/oo_unchangeName.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ var_dump($zip->getNameIndex(0));
2929
var_dump($zip->getCommentIndex(0));
3030

3131
var_dump(md5_file($file));
32-
33-
unlink($file);
32+
?>
33+
--CLEAN--
34+
<?php
35+
unlink(__DIR__.'/__tmp_oo_unchangeIndex.zip');
3436
?>
3537
--EXPECT--
3638
string(32) "cb753d0a812b2edb386bdcbc4cd7d131"

0 commit comments

Comments
 (0)