diff options
Diffstat (limited to 'ext/standard/tests/strings/strval.phpt')
-rw-r--r-- | ext/standard/tests/strings/strval.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/strval.phpt b/ext/standard/tests/strings/strval.phpt new file mode 100644 index 000000000..3f8b5cc98 --- /dev/null +++ b/ext/standard/tests/strings/strval.phpt @@ -0,0 +1,24 @@ +--TEST-- +strval() function +--FILE-- +<?php +$foo = 'bar'; +var_dump(strval($foo)); +define('FOO', 'BAR'); +var_dump(strval(FOO)); +var_dump(strval('foobar')); +var_dump(strval(1)); +var_dump(strval(1.1)); +var_dump(strval(true)); +var_dump(strval(false)); +var_dump(strval(array('foo'))); +?> +--EXPECT-- +string(3) "bar" +string(3) "BAR" +string(6) "foobar" +string(1) "1" +string(3) "1.1" +string(1) "1" +string(0) "" +string(5) "Array" |