]> granicus.if.org Git - php/commitdiff
add to 027 test (for code coverage) of fwrite on dir handle
authorGreg Beaver <cellog@php.net>
Sun, 13 Apr 2008 23:48:46 +0000 (23:48 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 13 Apr 2008 23:48:46 +0000 (23:48 +0000)
ext/phar/tests/027.phpt

index 83d66b0f08469a29597a6b9ac4dc0700b8364647..f3ebdb8c959b4b606f09529f262413e3162cd268 100755 (executable)
@@ -46,6 +46,9 @@ echo "fseek on dir handle\n";
 var_dump(fseek($a, 0, SEEK_END), ftell($a));
 var_dump(fseek($a, -1), ftell($a));
 var_dump(fseek($a, 1), ftell($a));
+echo "fwrite on dir handle\n";
+var_dump(fwrite($a, 'hi'));
+closedir($a);
 ?>
 ===DONE===
 --CLEAN--
@@ -72,4 +75,6 @@ int(-1)
 int(4)
 int(0)
 int(1)
+fwrite on dir handle
+int(0)
 ===DONE===