diff options
| author | Eyal Teutsch <eyalt@php.net> | 2010-12-12 07:24:51 +0000 |
|---|---|---|
| committer | Eyal Teutsch <eyalt@php.net> | 2010-12-12 07:24:51 +0000 |
| commit | 8e2475a787bf6a04513e5415432faf1b412bb1bb (patch) | |
| tree | aed6a469b6800698972ee9408940a8b106d78133 | |
| parent | a7ffa09e18137de43c91ac5f2120c170679baeae (diff) | |
| download | php-git-8e2475a787bf6a04513e5415432faf1b412bb1bb.tar.gz | |
moved the second unlink() to the CLEAN section in the SplFileObject_fwrite_variation* tests
| -rw-r--r-- | ext/spl/tests/SplFileObject_fwrite_variation_001.phpt | 4 | ||||
| -rw-r--r-- | ext/spl/tests/SplFileObject_fwrite_variation_002.phpt | 4 | ||||
| -rw-r--r-- | ext/spl/tests/SplFileObject_fwrite_variation_003.phpt | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/tests/SplFileObject_fwrite_variation_001.phpt b/ext/spl/tests/SplFileObject_fwrite_variation_001.phpt index f8d518f9a6..61741a8bf5 100644 --- a/ext/spl/tests/SplFileObject_fwrite_variation_001.phpt +++ b/ext/spl/tests/SplFileObject_fwrite_variation_001.phpt @@ -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); } diff --git a/ext/spl/tests/SplFileObject_fwrite_variation_002.phpt b/ext/spl/tests/SplFileObject_fwrite_variation_002.phpt index 47b1332d25..31399a0d02 100644 --- a/ext/spl/tests/SplFileObject_fwrite_variation_002.phpt +++ b/ext/spl/tests/SplFileObject_fwrite_variation_002.phpt @@ -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); } diff --git a/ext/spl/tests/SplFileObject_fwrite_variation_003.phpt b/ext/spl/tests/SplFileObject_fwrite_variation_003.phpt index 8e5c88ebf2..429d2a66bc 100644 --- a/ext/spl/tests/SplFileObject_fwrite_variation_003.phpt +++ b/ext/spl/tests/SplFileObject_fwrite_variation_003.phpt @@ -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); } |
