From: Johannes Schlüter Date: Wed, 3 Dec 2008 11:28:13 +0000 (+0000) Subject: Cleanup after running the tests ... X-Git-Tag: php-5.3.0alpha2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad44e253396247122e42f7e7d2afcabe5fe46254;p=php Cleanup after running the tests ... # I wonder we such basic tests fail and with an XFAIL a reason would be nice --- diff --git a/ext/standard/tests/file/file_put_contents_variation4.phpt b/ext/standard/tests/file/file_put_contents_variation4.phpt index ef05a39721..f5e44f935c 100644 --- a/ext/standard/tests/file/file_put_contents_variation4.phpt +++ b/ext/standard/tests/file/file_put_contents_variation4.phpt @@ -42,7 +42,8 @@ function runtest() { file_put_contents($filename, "File in include path", FILE_USE_INCLUDE_PATH); $line = file_get_contents($firstFile); echo "$line\n"; - unlink($firstFile); + unlink($firstFile); + unlink($filename); } ?> diff --git a/ext/standard/tests/file/file_put_contents_variation6.phpt b/ext/standard/tests/file/file_put_contents_variation6.phpt index d31308fe7d..2a735ca590 100644 --- a/ext/standard/tests/file/file_put_contents_variation6.phpt +++ b/ext/standard/tests/file/file_put_contents_variation6.phpt @@ -43,7 +43,8 @@ function runtest() { file_put_contents($filename, ". This was appended", FILE_USE_INCLUDE_PATH | FILE_APPEND); $line = file_get_contents($firstFile); echo "$line\n"; - unlink($firstFile); + unlink($firstFile); + unlink($filename); } ?>