summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/012-value-casting-operators-double.phpt
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-11-05 10:25:57 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-11-05 10:25:57 +0100
commitaec191bc6cbb83884466800a750ecad0b37e254f (patch)
treef52fe2b9551056580c5c519fb78a3c5600e1034a /tests/php/phpt/variables/012-value-casting-operators-double.phpt
parentaf530282f530580c1ed7bc184df0a727068275e1 (diff)
remove test framework, it never works, most of the bugs found by the test framework turn out to be caused by errors in the tests instead of errors in the real code, people complain about it all the time, and basically this whole test framework causes more problems than it solves, solves issue #215 and solves issue #221
Diffstat (limited to 'tests/php/phpt/variables/012-value-casting-operators-double.phpt')
-rw-r--r--tests/php/phpt/variables/012-value-casting-operators-double.phpt80
1 files changed, 0 insertions, 80 deletions
diff --git a/tests/php/phpt/variables/012-value-casting-operators-double.phpt b/tests/php/phpt/variables/012-value-casting-operators-double.phpt
deleted file mode 100644
index babd476..0000000
--- a/tests/php/phpt/variables/012-value-casting-operators-double.phpt
+++ /dev/null
@@ -1,80 +0,0 @@
---TEST--
-Test Php::Value casting operators (double)
---DESCRIPTION--
-The Php::Value class has casting operators to cast the object to almost every thinkable native type.
-
-native_value_casting - repeats the behavior of c++ functions TestVariables\value_casting
-the output of each of these functions should be the same
---SKIPIF--
-<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
---FILEEOF--
-<?php
-
-
-
-function out($v) {
- echo 'Test ';
- var_export($v);
- echo ':', PHP_EOL;
- TestVariables\value_cast2double($v);
- //echo (double)$v, PHP_EOL;;
- //echo PHP_EOL;
-}
-
-out(5555555555555);
-out("999999999999999");
-out(99999999999999);
-out(5);
-out(-99999999);
-out("18");
-out("3.14159265359");
-out(3.14159265359);
-out(" this is a string ");
-out(" 2-nd string ");
-out("false");
-out(false);
-out("true");
-out(true);
-out(0);
-out("0");
-out(0123); // octal number (equivalent to 83 decimal)
-out(0x1A); // hexadecimal number (equivalent to 26 decimal)
-
-
---EXPECT--
-Test 5555555555555:
-5555555555555
-Test '999999999999999':
-999999999999999
-Test 99999999999999:
-99999999999999
-Test 5:
-5
-Test -99999999:
--99999999
-Test '18':
-18
-Test '3.14159265359':
-3.14159265359
-Test 3.14159265359:
-3.14159265359
-Test ' this is a string ':
-0
-Test ' 2-nd string ':
-2
-Test 'false':
-0
-Test false:
-0
-Test 'true':
-0
-Test true:
-1
-Test 0:
-0
-Test '0':
-0
-Test 83:
-83
-Test 26:
-26 \ No newline at end of file