]> granicus.if.org Git - php/commitdiff
Cleanup after running the tests ...
authorJohannes Schlüter <johannes@php.net>
Wed, 3 Dec 2008 11:27:11 +0000 (11:27 +0000)
committerJohannes Schlüter <johannes@php.net>
Wed, 3 Dec 2008 11:27:11 +0000 (11:27 +0000)
ext/standard/tests/file/file_put_contents_variation4.phpt
ext/standard/tests/file/file_put_contents_variation6.phpt

index 36da5e715e60806ccc8dd397e8c89bb7231a4678..d434a84a002028e7cacf5f00b80b895bfeccb2f6 100644 (file)
@@ -43,7 +43,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);
 }
 
 ?>
index 8e33da5478ed6e97ceef47203f4fa586258ba467..552956a93c134bc98dc3ab2fe622a9a73b494bbf 100644 (file)
@@ -44,7 +44,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); 
 }
 
 ?>