diff options
Diffstat (limited to 'ext/standard/tests/general_functions/is_resource_basic.phpt')
-rw-r--r-- | ext/standard/tests/general_functions/is_resource_basic.phpt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/tests/general_functions/is_resource_basic.phpt b/ext/standard/tests/general_functions/is_resource_basic.phpt index 27583d3d87..75f4e4a8d8 100644 --- a/ext/standard/tests/general_functions/is_resource_basic.phpt +++ b/ext/standard/tests/general_functions/is_resource_basic.phpt @@ -1,18 +1,18 @@ --TEST-- -Test is_resource() function : basic functionality +Test is_resource() function : basic functionality --FILE-- <?php /* Prototype : bool is_resource ( mixed $var ) * Description: Finds whether a variable is a resource * Source code: ext/standard/type.c - */ + */ echo "*** Testing is_resource() : basic functionality ***\n"; class Hello { public function SayHello($arg) { echo "Hello\n"; - } + } } @@ -25,7 +25,7 @@ $vars = array( array(1,2,3,4,5), NULL, new Hello()); - + $types = array( "bool=false", "bool=true", @@ -34,7 +34,7 @@ $types = array( "string", "array", "NULL", - "object"); + "object"); echo "\nNon-resource type cases\n"; @@ -44,7 +44,7 @@ for ($i=0; $i < count($vars); $i++) { } else { echo $types[$i]. " test returns FALSE\n"; } -} +} $res = fopen(__FILE__, "r"); echo "\nResource type..var_dump after file open returns\n"; @@ -64,7 +64,7 @@ if (is_resource($res)) { echo " TRUE\n"; } else { echo " FALSE\n"; -} +} ?> |