]> granicus.if.org Git - php/commitdiff
Fix failing tests
authorPeter Kokot <peterkokot@gmail.com>
Sat, 9 Feb 2019 23:43:28 +0000 (00:43 +0100)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 10 Feb 2019 00:27:38 +0000 (01:27 +0100)
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.

ext/zip/tests/oo_unchangeIndex.phpt
ext/zip/tests/oo_unchangeName.phpt

index eabb53c70b41503565fbf91b6b4efc1220aadba3..f4b5a9a82a16f8432f3eed889e8b2f5cb129b32c 100644 (file)
@@ -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"
index 3e16980685516821cf4ddd42f89e3ca988af45cc..23dd0574af57815411c2a0f811550f58c3ad727f 100644 (file)
@@ -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"