diff options
Diffstat (limited to 'tests/php/phpt/variables')
-rw-r--r-- | tests/php/phpt/variables/011-value-casting-operators.phpt | 9 | ||||
-rw-r--r-- | tests/php/phpt/variables/012-value-casting-operators-double.phpt | 12 |
2 files changed, 11 insertions, 10 deletions
diff --git a/tests/php/phpt/variables/011-value-casting-operators.phpt b/tests/php/phpt/variables/011-value-casting-operators.phpt index 3fe6817..27e92c7 100644 --- a/tests/php/phpt/variables/011-value-casting-operators.phpt +++ b/tests/php/phpt/variables/011-value-casting-operators.phpt @@ -1,13 +1,15 @@ --TEST-- -Test Php::Value casting operators +Test Php::Value casting operators (64bit OS only) --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 +Skip if the current OS is not 64-bit architecture. + --SKIPIF-- -<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?> +<?php if (!extension_loaded("extension_for_tests") || 'x86_64' != php_uname('m') ) print "skip"; ?> --FILEEOF-- <?php @@ -148,5 +150,4 @@ Test 83: Test 26: long:26 string:26 - bool:Yes - + bool:Yes
\ No newline at end of file diff --git a/tests/php/phpt/variables/012-value-casting-operators-double.phpt b/tests/php/phpt/variables/012-value-casting-operators-double.phpt index 32086ef..babd476 100644 --- a/tests/php/phpt/variables/012-value-casting-operators-double.phpt +++ b/tests/php/phpt/variables/012-value-casting-operators-double.phpt @@ -21,9 +21,9 @@ function out($v) { //echo PHP_EOL; } -out(5555555555555555); +out(5555555555555); out("999999999999999"); -out(999999999999999); +out(99999999999999); out(5); out(-99999999); out("18"); @@ -42,12 +42,12 @@ out(0x1A); // hexadecimal number (equivalent to 26 decimal) --EXPECT-- -Test 5555555555555555: -5555555555555555 +Test 5555555555555: +5555555555555 Test '999999999999999': 999999999999999 -Test 999999999999999: -999999999999999 +Test 99999999999999: +99999999999999 Test 5: 5 Test -99999999: |