summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-04-14 16:46:18 +0600
committervalmat <ufabiz@gmail.com>2014-04-14 16:46:18 +0600
commit2d2d03270beebdddd0f6be972a7c80b397ebe896 (patch)
tree34508a6775d2caffdb97b10ebf6b774a71db7172 /tests
parent6b5506dfe7b0f5ac9ce923c1d9cdd2ebc4c72a7c (diff)
fixed for 32-bit architecture OS
Diffstat (limited to 'tests')
-rw-r--r--tests/cpp/main.cpp8
-rw-r--r--tests/php/phpt/variables/011-value-casting-operators.phpt9
-rw-r--r--tests/php/phpt/variables/012-value-casting-operators-double.phpt12
3 files changed, 15 insertions, 14 deletions
diff --git a/tests/cpp/main.cpp b/tests/cpp/main.cpp
index 0f36ecc..8583aec 100644
--- a/tests/cpp/main.cpp
+++ b/tests/cpp/main.cpp
@@ -154,10 +154,10 @@ extern "C"
extension.add("TestIniEntries\\iniTest1", TestIniEntries::iniTest1);
- extension.onStartup([](){
- Php::out << "ini_get(ini1) = {{" << Php::ini_get("ini1") << " | " << Php::ini_get_orig("ini1") << "}}" << std::endl;
- Php::out << "ini_get(ini2) = {{" << Php::ini_get("ini2") << " | " << Php::ini_get_orig("ini2") << "}}" << std::endl;
- });
+ //extension.onStartup([](){
+ // Php::out << "ini_get(ini1) = {{" << Php::ini_get("ini1") << " | " << Php::ini_get_orig("ini1") << "}}" << std::endl;
+ // Php::out << "ini_get(ini2) = {{" << Php::ini_get("ini2") << " | " << Php::ini_get_orig("ini2") << "}}" << std::endl;
+ //});
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: