]> granicus.if.org Git - php/commitdiff
moved the second unlink() to the CLEAN section in the SplFileObject_fwrite_variation...
authorEyal Teutsch <eyalt@php.net>
Sun, 12 Dec 2010 07:24:51 +0000 (07:24 +0000)
committerEyal Teutsch <eyalt@php.net>
Sun, 12 Dec 2010 07:24:51 +0000 (07:24 +0000)
ext/spl/tests/SplFileObject_fwrite_variation_001.phpt
ext/spl/tests/SplFileObject_fwrite_variation_002.phpt
ext/spl/tests/SplFileObject_fwrite_variation_003.phpt

index f8d518f9a6a87a13c12512aca82813a12e382c6e..61741a8bf5668dfa1f9713b1e30155e0a9b88ef9 100644 (file)
@@ -9,6 +9,10 @@ if(file_exists($file)) {
 $obj = New SplFileObject($file,'w');
 $obj->fwrite('test_write',4);
 var_dump(file_get_contents($file));
+?>
+--CLEAN--
+<?php
+$file = dirname(__FILE__).'/SplFileObject_fwrite_variation_001.txt';
 if(file_exists($file)) {
        unlink($file);
 }
index 47b1332d252ec134fa1d9197f142881c151ee4fd..31399a0d02d5a3ff0f9b7e4799a1d4d443b9327c 100644 (file)
@@ -9,6 +9,10 @@ if(file_exists($file)) {
 $obj = New SplFileObject($file,'w');
 $obj->fwrite('test_write',12);
 var_dump(file_get_contents($file));
+?>
+--CLEAN--
+<?php
+$file = dirname(__FILE__).'/SplFileObject_fwrite_variation_002.txt';
 if(file_exists($file)) {
        unlink($file);
 }
index 8e5c88ebf2860eb81b5b8f8bee33d5655a005899..429d2a66bc91434b529b34ca5629b095c8d1d720 100644 (file)
@@ -10,6 +10,10 @@ if(file_exists($file)) {
 $obj = New SplFileObject($file,'w');
 $obj->fwrite('"test" \'write\'');
 var_dump(file_get_contents($file));
+?>
+--CLEAN--
+<?php
+$file = dirname(__FILE__).'/SplFileObject_fwrite_variation_002.txt';
 if(file_exists($file)) {
        unlink($file);
 }