summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/is_string.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/general_functions/is_string.phpt')
-rw-r--r--ext/standard/tests/general_functions/is_string.phpt19
1 files changed, 2 insertions, 17 deletions
diff --git a/ext/standard/tests/general_functions/is_string.phpt b/ext/standard/tests/general_functions/is_string.phpt
index ea2fb36a24..a4ef7a47b1 100644
--- a/ext/standard/tests/general_functions/is_string.phpt
+++ b/ext/standard/tests/general_functions/is_string.phpt
@@ -17,7 +17,7 @@ EOT;
/* heredoc string with only numerics */
$heredoc_numeric_string = <<<EOT
123456 3993
-4849 string
+4849 string
EOT;
/* null heardoc string */
$heredoc_empty_string = <<<EOT
@@ -140,13 +140,6 @@ foreach ($not_strings as $type ) {
var_dump( is_string($type) );
}
-echo "\n*** Testing error conditions ***\n";
-//Zero argument
-var_dump( is_string() );
-
-//arguments more than expected
-var_dump( is_string("string", "test") );
-
echo "Done\n";
// close the resources used
@@ -154,7 +147,7 @@ fclose($fp);
closedir($dfp);
?>
---EXPECTF--
+--EXPECT--
*** Testing is_string() with valid string values ***
-- Iteration 1 --
bool(true)
@@ -292,12 +285,4 @@ bool(false)
bool(false)
-- Iteration 45 --
bool(false)
-
-*** Testing error conditions ***
-
-Warning: is_string() expects exactly 1 parameter, 0 given in %s on line %d
-bool(false)
-
-Warning: is_string() expects exactly 1 parameter, 2 given in %s on line %d
-bool(false)
Done