summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/005-cast-objects-to-scalars.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/phpt/variables/005-cast-objects-to-scalars.phpt')
-rw-r--r--tests/php/phpt/variables/005-cast-objects-to-scalars.phpt22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/php/phpt/variables/005-cast-objects-to-scalars.phpt b/tests/php/phpt/variables/005-cast-objects-to-scalars.phpt
deleted file mode 100644
index 9de9ba5..0000000
--- a/tests/php/phpt/variables/005-cast-objects-to-scalars.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-cast objects to scalars
---DESCRIPTION--
-http://www.phpcpp.com/documentation/special-features#casting-functions
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-
-
-function bool2str($b) {
- return $b ? "Yes" : "No";
-}
-$obj = new TestVariables\Obj2Scalar();
-echo " long: ", (int)$obj, "\n string: ", (string)$obj, "\n double: ", (double)$obj, "\n bool: ", bool2str((bool)$obj);
-
-
---EXPECT--
- long: 27032014
- string: Mount Meru, also called Sumeru (Sanskrit)
- double: 3.14159265359
- bool: Yes