From aec191bc6cbb83884466800a750ecad0b37e254f Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 5 Nov 2015 10:25:57 +0100 Subject: 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 --- tests/php/dbg.php | 57 -------- tests/php/include/valueiterator/1.php | 76 ---------- tests/php/php_alias.sh | 19 --- tests/php/phpt/.gitignore | 14 -- tests/php/phpt/class_obj/001.phpt | 14 -- tests/php/phpt/class_obj/002.phpt | 14 -- tests/php/phpt/class_obj/003-comparable.phpt | 46 ------- tests/php/phpt/class_obj/004-static-funct.phpt | 26 ---- tests/php/phpt/class_obj/005-static-prop.phpt | 32 ----- tests/php/phpt/class_obj/readme | 1 - tests/php/phpt/ini_entries/001.phpt | 19 --- tests/php/phpt/ini_entries/002.phpt | 69 ---------- tests/php/phpt/ini_entries/003.phpt | 27 ---- tests/php/phpt/valueiterator/001.phpt | 21 --- tests/php/phpt/valueiterator/002.phpt | 22 --- tests/php/phpt/valueiterator/003.phpt | 18 --- tests/php/phpt/valueiterator/004.phpt | 20 --- tests/php/phpt/valueiterator/005.phpt | 19 --- tests/php/phpt/valueiterator/006.phpt | 21 --- .../valueiterator/007-Iterate-internal-array.phpt | 15 -- tests/php/phpt/valueiterator/readme | 1 - tests/php/phpt/variables/001-process_globals.phpt | 47 ------- .../php/phpt/variables/002-get_complex_array.phpt | 33 ----- tests/php/phpt/variables/003-value-types.phpt | 72 ---------- .../phpt/variables/004-store-scalar-variables.phpt | 58 -------- .../variables/005-cast-objects-to-scalars.phpt | 22 --- tests/php/phpt/variables/006-casting-obj2str.phpt | 31 ----- .../phpt/variables/007-overloaded-operators.phpt | 51 ------- tests/php/phpt/variables/008-value-arrays.phpt | 89 ------------ tests/php/phpt/variables/009-value-object.phpt | 24 ---- tests/php/phpt/variables/010-value-object2.phpt | 24 ---- .../variables/011-value-casting-operators.phpt | 153 --------------------- .../012-value-casting-operators-double.phpt | 80 ----------- .../phpt/variables/013-calling-php-functions.phpt | 113 --------------- .../phpt/variables/014-calling-php-functions.phpt | 113 --------------- .../phpt/variables/015-calling-php-functions.phpt | 109 --------------- .../phpt/variables/016-calling-php-functions.phpt | 113 --------------- .../phpt/variables/017-calling-php-functions.phpt | 115 ---------------- .../phpt/variables/018-calling-php-functions.phpt | 32 ----- tests/php/phpt/variables/019-HashMember-1.phpt | 27 ---- tests/php/phpt/variables/020-HashMember-2.phpt | 76 ---------- tests/php/phpt/variables/021-HashMember-3.phpt | 26 ---- tests/php/phpt/variables/022-HashMember-4.phpt | 37 ----- tests/php/phpt/variables/023-cookie.phpt | 16 --- tests/php/phpt/variables/024-get-post.phpt | 26 ---- tests/php/phpt/variables/025-post-raw1.phpt | 27 ---- tests/php/phpt/variables/026-post-raw2.phpt | 38 ----- tests/php/phpt/variables/027-env.phpt | 25 ---- tests/php/phpt/variables/028-compare1.phpt | 53 ------- tests/php/phpt/variables/029-compare2.phpt | 74 ---------- tests/php/phpt/variables/readme | 5 - tests/php/readme | 9 -- 52 files changed, 2269 deletions(-) delete mode 100644 tests/php/dbg.php delete mode 100644 tests/php/include/valueiterator/1.php delete mode 100755 tests/php/php_alias.sh delete mode 100644 tests/php/phpt/.gitignore delete mode 100644 tests/php/phpt/class_obj/001.phpt delete mode 100644 tests/php/phpt/class_obj/002.phpt delete mode 100644 tests/php/phpt/class_obj/003-comparable.phpt delete mode 100644 tests/php/phpt/class_obj/004-static-funct.phpt delete mode 100644 tests/php/phpt/class_obj/005-static-prop.phpt delete mode 100644 tests/php/phpt/class_obj/readme delete mode 100644 tests/php/phpt/ini_entries/001.phpt delete mode 100644 tests/php/phpt/ini_entries/002.phpt delete mode 100644 tests/php/phpt/ini_entries/003.phpt delete mode 100644 tests/php/phpt/valueiterator/001.phpt delete mode 100644 tests/php/phpt/valueiterator/002.phpt delete mode 100644 tests/php/phpt/valueiterator/003.phpt delete mode 100644 tests/php/phpt/valueiterator/004.phpt delete mode 100644 tests/php/phpt/valueiterator/005.phpt delete mode 100644 tests/php/phpt/valueiterator/006.phpt delete mode 100644 tests/php/phpt/valueiterator/007-Iterate-internal-array.phpt delete mode 100644 tests/php/phpt/valueiterator/readme delete mode 100644 tests/php/phpt/variables/001-process_globals.phpt delete mode 100644 tests/php/phpt/variables/002-get_complex_array.phpt delete mode 100644 tests/php/phpt/variables/003-value-types.phpt delete mode 100644 tests/php/phpt/variables/004-store-scalar-variables.phpt delete mode 100644 tests/php/phpt/variables/005-cast-objects-to-scalars.phpt delete mode 100644 tests/php/phpt/variables/006-casting-obj2str.phpt delete mode 100644 tests/php/phpt/variables/007-overloaded-operators.phpt delete mode 100644 tests/php/phpt/variables/008-value-arrays.phpt delete mode 100644 tests/php/phpt/variables/009-value-object.phpt delete mode 100644 tests/php/phpt/variables/010-value-object2.phpt delete mode 100644 tests/php/phpt/variables/011-value-casting-operators.phpt delete mode 100644 tests/php/phpt/variables/012-value-casting-operators-double.phpt delete mode 100644 tests/php/phpt/variables/013-calling-php-functions.phpt delete mode 100644 tests/php/phpt/variables/014-calling-php-functions.phpt delete mode 100644 tests/php/phpt/variables/015-calling-php-functions.phpt delete mode 100644 tests/php/phpt/variables/016-calling-php-functions.phpt delete mode 100644 tests/php/phpt/variables/017-calling-php-functions.phpt delete mode 100644 tests/php/phpt/variables/018-calling-php-functions.phpt delete mode 100644 tests/php/phpt/variables/019-HashMember-1.phpt delete mode 100644 tests/php/phpt/variables/020-HashMember-2.phpt delete mode 100644 tests/php/phpt/variables/021-HashMember-3.phpt delete mode 100644 tests/php/phpt/variables/022-HashMember-4.phpt delete mode 100644 tests/php/phpt/variables/023-cookie.phpt delete mode 100644 tests/php/phpt/variables/024-get-post.phpt delete mode 100644 tests/php/phpt/variables/025-post-raw1.phpt delete mode 100644 tests/php/phpt/variables/026-post-raw2.phpt delete mode 100644 tests/php/phpt/variables/027-env.phpt delete mode 100644 tests/php/phpt/variables/028-compare1.phpt delete mode 100644 tests/php/phpt/variables/029-compare2.phpt delete mode 100644 tests/php/phpt/variables/readme delete mode 100644 tests/php/readme (limited to 'tests/php') diff --git a/tests/php/dbg.php b/tests/php/dbg.php deleted file mode 100644 index e626ce0..0000000 --- a/tests/php/dbg.php +++ /dev/null @@ -1,57 +0,0 @@ -info(); -echo "\x1b[0m"; -echo "\x1b[0;34m"; -var_export( ini_get_all ( 'extension_for_tests' ) ); -echo "\x1b[0m", PHP_EOL; -exit; - -TestIniEntries\iniTest1(); - -//ini_set("extension_for_tests.some_string3", 'RFVBGT') ; -echo PHP_EOL; -echo "extension_for_tests.some_string ={{" , ini_get("extension_for_tests.some_string") , "}}", PHP_EOL; -echo "extension_for_tests.some_string2 ={{" , ini_get("extension_for_tests.some_string2") , "}}", PHP_EOL; -echo "extension_for_tests.some_string3 ={{" , ini_get("extension_for_tests.some_string3") , "}}", PHP_EOL; -echo "extension_for_tests.some_string3 ={{" , ini_get("extension_for_tests.some_bool") , "}}", PHP_EOL; - - -echo "\x1b[1;31m"; -(new ReflectionExtension('extension_for_tests') )->info(); -echo "\x1b[0m"; - -echo "\x1b[0;34m"; -var_export( ini_get_all ( 'extension_for_tests' ) ); -echo "\x1b[0m", PHP_EOL; - -ini_set("extension_for_tests.some_string3", 'RFVBGT') ; -echo "extension_for_tests.some_string3 ={{" , ini_get("extension_for_tests.some_string3") , "}}", PHP_EOL; -ini_restore ( 'extension_for_tests.some_string3' ); -echo "extension_for_tests.some_string3 ={{" , ini_get("extension_for_tests.some_string3") , "}}", PHP_EOL; - - -echo "extension_for_tests.some_bool :"; -var_dump(ini_get("extension_for_tests.some_bool")); -echo PHP_EOL; - -ini_set("extension_for_tests.some_bool", 'off'); - -echo "extension_for_tests.some_bool :"; -var_dump(ini_get("extension_for_tests.some_bool")); -echo PHP_EOL; - -//var_export(php_sapi_name()); diff --git a/tests/php/include/valueiterator/1.php b/tests/php/include/valueiterator/1.php deleted file mode 100644 index 984a77f..0000000 --- a/tests/php/include/valueiterator/1.php +++ /dev/null @@ -1,76 +0,0 @@ -position = 0; - } - - function rewind() { - $this->position = 0; - } - - function current() { - return $this->array[$this->position]; - } - - function key() { - return 'key_' . $this->position; - } - - function next() { - ++$this->position; - } - - function valid() { - return isset($this->array[$this->position]); - } - - function __destruct() { - echo "~impIterator\n"; - } -} - -class impIterAggr1 implements IteratorAggregate { - public function getIterator() { - return new ArrayIterator(new SimpleClass); - } - function __destruct() { - echo "~impIterAggr1\n"; - } -} - -class impIterAggr2 implements IteratorAggregate { - public function getIterator() { - return new impIterator(); - } - function __destruct() { - echo "~impIterAggr2\n"; - } -} - - - - - - - - - - - - - diff --git a/tests/php/php_alias.sh b/tests/php/php_alias.sh deleted file mode 100755 index 4393172..0000000 --- a/tests/php/php_alias.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -#!/bin/bash -# -# this only alias to comand "/usr/bin/php -d enable_dl=On -d extension_dir=../ext_dir -d extension=extfortest.so" -# Designed to simplify debugging of tests -# You can get the same thing using normal aliases: `alias php_alias="php -d enable_dl=On -d extension_dir=../ext_dir -d extension=extfortest.so"` -# Exemlple toese: $ ./php_alias.sh dbg.php -# - -if [ ! $1 ] -then - echo "Required the path to php file" - exit; -fi - -LD_LIBRARY_PATH="$(cd $PWD/../.. && echo $PWD):${LD_LIBRARY_PATH}" -export LD_LIBRARY_PATH - -/usr/bin/php -d extension_dir=../ext_dir -d extension=extfortest.so -d ini7=47 -d ini1=ReValIni1 -d ini2=ReValIni2 $1 $2 $3 $4 $5 diff --git a/tests/php/phpt/.gitignore b/tests/php/phpt/.gitignore deleted file mode 100644 index b583a44..0000000 --- a/tests/php/phpt/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -*.diff -*.exp -*.log -*.out -*.php -*.sh -*.mem -*.phpt-diff -*.phpt-exp -*.phpt-log -*.phpt-out -*.phpt-php -*.phpt-sh -*.phpt-mem diff --git a/tests/php/phpt/class_obj/001.phpt b/tests/php/phpt/class_obj/001.phpt deleted file mode 100644 index b22a44c..0000000 --- a/tests/php/phpt/class_obj/001.phpt +++ /dev/null @@ -1,14 +0,0 @@ ---TEST-- -Test constructor & destructor ---SKIPIF-- - ---FILEEOF-- - ---FILEEOF-- - ---FILEEOF-- - ---FILEEOF-- - ---FILEEOF-- - ---INI-- -ini2=ReValIni2 ---FILEEOF-- - ---INI-- -ini2=ReValIni2 -ini6=33 ---FILEEOF-- - - array ( - 'global_value' => 'valIni1', - 'local_value' => 'valIni1', - 'access' => 7, - ), - 'ini2' => - array ( - 'global_value' => 'OrigValIni2', - 'local_value' => 'ReValIni2', - 'access' => 7, - ), - 'ini3' => - array ( - 'global_value' => 'OrigValIni3', - 'local_value' => 'valIni3', - 'access' => 4, - ), - 'ini4' => - array ( - 'global_value' => 'Off', - 'local_value' => 'On', - 'access' => 1, - ), - 'ini5' => - array ( - 'global_value' => 'Off', - 'local_value' => 'Off', - 'access' => 7, - ), - 'ini6' => - array ( - 'global_value' => '11', - 'local_value' => '33', - 'access' => 7, - ), - 'ini7' => - array ( - 'global_value' => '5', - 'local_value' => '74', - 'access' => 7, - ), - 'ini8' => - array ( - 'global_value' => '6.283185', - 'local_value' => '3.141593', - 'access' => 7, - ), - 'ini9' => - array ( - 'global_value' => '5.436564', - 'local_value' => '2.718282', - 'access' => 1, - ), -) \ No newline at end of file diff --git a/tests/php/phpt/ini_entries/003.phpt b/tests/php/phpt/ini_entries/003.phpt deleted file mode 100644 index 5ad6efb..0000000 --- a/tests/php/phpt/ini_entries/003.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Test ini entries #3 ---DESCRIPTION-- -Test to check palce action of ini entries ---SKIPIF-- - ---FILEEOF-- - ---FILEEOF-- - 'qweqweqweqw',5,'asd' => '«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»', 'zxccvx' => 'sdfsecvyh6bug6yfty',); - -TestValueIterator\loopValue($arr); - -echo PHP_EOL; ---EXPECT-- -Array/Object contains 4 items -[qwe]=qweqweqweqw -[0]=5 -[asd]=«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰» -[zxccvx]=sdfsecvyh6bug6yfty \ No newline at end of file diff --git a/tests/php/phpt/valueiterator/002.phpt b/tests/php/phpt/valueiterator/002.phpt deleted file mode 100644 index fdffdf7..0000000 --- a/tests/php/phpt/valueiterator/002.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -Iterate object of stdClass ---DESCRIPTION-- -Iterate object of stdClass ---SKIPIF-- - ---FILEEOF-- - 'qweqweqweqw',5,'asd' => '«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»', 'zxccvx' => 'sdfsecvyh6bug6yfty',); -$obj = (object)$arr; - -TestValueIterator\loopValue($obj); - -echo PHP_EOL; ---EXPECT-- -Array/Object contains 0 items -[qwe]=qweqweqweqw -[0]=5 -[asd]=«£¥§©®°±¶⅐⅒⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰» -[zxccvx]=sdfsecvyh6bug6yfty \ No newline at end of file diff --git a/tests/php/phpt/valueiterator/003.phpt b/tests/php/phpt/valueiterator/003.phpt deleted file mode 100644 index d29d7e5..0000000 --- a/tests/php/phpt/valueiterator/003.phpt +++ /dev/null @@ -1,18 +0,0 @@ ---TEST-- -Iterate object ---DESCRIPTION-- -Iterate regular php object ---SKIPIF-- - ---FILEEOF-- - ---FILEEOF-- - ---FILEEOF-- - ---FILEEOF-- - ---FILEEOF-- - ---SKIPIF-- - ---FILEEOF-- - ---FILEEOF-- - 123, - "b" => 456, - "c" => array("nested value","example",7) - ); -} -var_export(get_complex_array()); -*/ -var_export(TestVariables\get_complex_array()); - - -echo PHP_EOL; ---EXPECT-- -array ( - 'a' => 123, - 'b' => 456, - 'c' => - array ( - 0 => 'nested value', - 1 => 'example', - 2 => 7, - ), -) \ No newline at end of file diff --git a/tests/php/phpt/variables/003-value-types.phpt b/tests/php/phpt/variables/003-value-types.phpt deleted file mode 100644 index 477fbe2..0000000 --- a/tests/php/phpt/variables/003-value-types.phpt +++ /dev/null @@ -1,72 +0,0 @@ ---TEST-- -get_complex_array ---SKIPIF-- - ---FILEEOF-- - NULL, - 'Numeric' => 2014, - 'Float' => 3.14, - 'Bool' => true, - 'Array' => array(5,'a' => 33, 'str'), - 'Object' => new stdClass(), - 'String' => 'String', - 'Resource' => 7, - 'Constant' => 5, - 'ConstantArray' => 11, - 'Callable1' => 'ret5', - 'Callable2' => $methodVariable, - 'Callable3' => function () {return 5;}, - 'Callable4' => new CallableClass() -); - -TestVariables\value_types($arr); - -//To check uncomment the following lines: -/* -echo "\n\nCallable1:"; -var_export(is_callable($arr['Callable1'])); -echo PHP_EOL,'Callable2:'; -var_export(is_callable($arr['Callable2'])); -echo PHP_EOL,'Callable3:'; -var_export(is_callable($arr['Callable3'])); -echo PHP_EOL,'Callable4:'; -var_export(is_callable($arr['Callable4'])); -echo PHP_EOL,'No Callable:'; -var_export(is_callable(new stdClass)); -*/ - - -echo PHP_EOL; ---EXPECT-- -Null: Yes -Numeric: Yes -Float: Yes -Bool: Yes -Array: Yes -Object: Yes -String: Yes -Resource: No -Constant: No -ConstantArray: No -Callable1: Yes -Callable2: Yes -Callable3: Yes -Callable4: Yes \ No newline at end of file diff --git a/tests/php/phpt/variables/004-store-scalar-variables.phpt b/tests/php/phpt/variables/004-store-scalar-variables.phpt deleted file mode 100644 index 53cc681..0000000 --- a/tests/php/phpt/variables/004-store-scalar-variables.phpt +++ /dev/null @@ -1,58 +0,0 @@ ---TEST-- -Test variables defined in PHP-CPP ---DESCRIPTION-- -in PHP-CPP: -Php::Value scalar_store(void) { - - Php::Value value1 = 1234; - Php::Value value2 = "this is a string"; - Php::Value value3 = std::string("another string"); - Php::Value value4 = nullptr; - Php::Value value5 = 123.45; - Php::Value value6 = true; - - Php::Value r; - r[0] = value1; - r[1] = value2; - r[2] = value3; - r[3] = value4; - r[4] = value5; - r[5] = value6; - - r[6] = 1234; - r[7] = "this is a string"; - r[8] = std::string("another string"); - r[9] = nullptr; // NULL - r[10] = Php::Value(); // NULL - r[11] = 123.45; - r[12] = false; - - return r; -} - ---SKIPIF-- - ---FILEEOF-- - 1234, - 1 => 'this is a string', - 2 => 'another string', - 3 => NULL, - 4 => 123.45, - 5 => true, - 6 => 1234, - 7 => 'this is a string', - 8 => 'another string', - 9 => NULL, - 10 => NULL, - 11 => 123.45, - 12 => false, -) 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-- - ---FILEEOF-- - ---FILEEOF-- - ---FILEEOF-- - 100 -130 -122 -16048.5 -1.05306 --990 --998 --122216 --8.01944 -value == 'some string' -10 -2 -1234.5 -0.0810045 \ No newline at end of file diff --git a/tests/php/phpt/variables/008-value-arrays.phpt b/tests/php/phpt/variables/008-value-arrays.phpt deleted file mode 100644 index 6950780..0000000 --- a/tests/php/phpt/variables/008-value-arrays.phpt +++ /dev/null @@ -1,89 +0,0 @@ ---TEST-- -Test Php::Value arrays ---DESCRIPTION-- ---SKIPIF-- - ---FILEEOF-- - - array ( - 0 => 'apple', - 1 => 'banana', - 2 => 'tomato', - ), - 'filled' => - array ( - 0 => 'a', - 1 => 'b', - 2 => 'c', - 3 => 'd', - ), - 'assoc' => - array ( - 'apple' => 'green', - 'banana' => 'yellow', - 'tomato' => 'green', - ), - 'assoc2' => - array ( - 'x' => 'info@example.com', - 'y' => NULL, - 'z' => 123, - ), - 'assoc3' => - array ( - 'x' => 'info@example.com', - 'y' => NULL, - 'z' => - array ( - 0 => 'a', - 1 => 'b', - 2 => 'c', - ), - ), -) \ No newline at end of file diff --git a/tests/php/phpt/variables/009-value-object.phpt b/tests/php/phpt/variables/009-value-object.phpt deleted file mode 100644 index c45cae8..0000000 --- a/tests/php/phpt/variables/009-value-object.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -Test Php::Value object #1 ---DESCRIPTION-- - create empty object of type stdClass - object properties can be accessed with square brackets ---SKIPIF-- - ---FILEEOF-- - "value1", "property2" => "value2"); - -var_export($object); - - - ---EXPECT-- -stdClass::__set_state(array( - 'property1' => 'value1', - 'property2' => 'value2', -)) \ No newline at end of file diff --git a/tests/php/phpt/variables/010-value-object2.phpt b/tests/php/phpt/variables/010-value-object2.phpt deleted file mode 100644 index 8697a69..0000000 --- a/tests/php/phpt/variables/010-value-object2.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -Test Php::Value object #2 ---DESCRIPTION-- - create empty object of type stdClass - object properties can be accessed with square brackets ---SKIPIF-- - ---FILEEOF-- - '2014-03-27 00:37:15', - 'timezone_type' => 3, - 'timezone' => 'Europe/Amsterdam', -)) \ No newline at end of file diff --git a/tests/php/phpt/variables/011-value-casting-operators.phpt b/tests/php/phpt/variables/011-value-casting-operators.phpt deleted file mode 100644 index 27e92c7..0000000 --- a/tests/php/phpt/variables/011-value-casting-operators.phpt +++ /dev/null @@ -1,153 +0,0 @@ ---TEST-- -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-- - ---FILEEOF-- - ---FILEEOF-- - ---FILEEOF-- - 'param1', -)userspace function called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', -)userspace function called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', -)userspace function called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', -)userspace function called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), -)userspace function called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), - 5 => - DateTime::__set_state(array( - 'date' => '2014-03-28 19:42:15', - 'timezone_type' => 3, - 'timezone' => 'Asia/Yekaterinburg', - )), -)userspace function called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', -)userspace function called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', -)userspace function called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', -)userspace function called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', - 9 => 'param10', -) \ No newline at end of file diff --git a/tests/php/phpt/variables/014-calling-php-functions.phpt b/tests/php/phpt/variables/014-calling-php-functions.phpt deleted file mode 100644 index 4a05e2a..0000000 --- a/tests/php/phpt/variables/014-calling-php-functions.phpt +++ /dev/null @@ -1,113 +0,0 @@ ---TEST-- -calling-php-Callback-functions ---SKIPIF-- - ---FILEEOF-- - 'param1', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), - 5 => - DateTime::__set_state(array( - 'date' => '2014-03-28 19:42:15', - 'timezone_type' => 3, - 'timezone' => 'Asia/Yekaterinburg', - )), -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', - 9 => 'param10', -) \ No newline at end of file diff --git a/tests/php/phpt/variables/015-calling-php-functions.phpt b/tests/php/phpt/variables/015-calling-php-functions.phpt deleted file mode 100644 index e9382b2..0000000 --- a/tests/php/phpt/variables/015-calling-php-functions.phpt +++ /dev/null @@ -1,109 +0,0 @@ ---TEST-- -calling-php-Callback-functions (lambda) ---SKIPIF-- - ---FILEEOF-- - 'param1', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), - 5 => - DateTime::__set_state(array( - 'date' => '2014-03-28 19:42:15', - 'timezone_type' => 3, - 'timezone' => 'Asia/Yekaterinburg', - )), -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', - 9 => 'param10', -) \ No newline at end of file diff --git a/tests/php/phpt/variables/016-calling-php-functions.phpt b/tests/php/phpt/variables/016-calling-php-functions.phpt deleted file mode 100644 index 46fda6e..0000000 --- a/tests/php/phpt/variables/016-calling-php-functions.phpt +++ /dev/null @@ -1,113 +0,0 @@ ---TEST-- -calling-php-Callback-functions (__invoke) ---SKIPIF-- - ---FILEEOF-- - 'param1', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), - 5 => - DateTime::__set_state(array( - 'date' => '2014-03-28 19:42:15', - 'timezone_type' => 3, - 'timezone' => 'Asia/Yekaterinburg', - )), -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', - 9 => 'param10', -) \ No newline at end of file diff --git a/tests/php/phpt/variables/017-calling-php-functions.phpt b/tests/php/phpt/variables/017-calling-php-functions.phpt deleted file mode 100644 index 630399a..0000000 --- a/tests/php/phpt/variables/017-calling-php-functions.phpt +++ /dev/null @@ -1,115 +0,0 @@ ---TEST-- -calling-php-Callback-functions (method of class) ---SKIPIF-- - ---FILEEOF-- - 'param1', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => - array ( - 0 => 'param5', - 1 => 3.14159265359, - 2 => 28032014, - 'key' => 'value', - ), - 5 => - DateTime::__set_state(array( - 'date' => '2014-03-28 19:42:15', - 'timezone_type' => 3, - 'timezone' => 'Asia/Yekaterinburg', - )), -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', -)Callback called with parameters: -array ( - 0 => 'param1', - 1 => 'param2', - 2 => 'param3', - 3 => 'param4', - 4 => 'param5', - 5 => 'param6', - 6 => 'param7', - 7 => 'param8', - 8 => 'param9', - 9 => 'param10', -) \ No newline at end of file diff --git a/tests/php/phpt/variables/018-calling-php-functions.phpt b/tests/php/phpt/variables/018-calling-php-functions.phpt deleted file mode 100644 index 1b8bfeb..0000000 --- a/tests/php/phpt/variables/018-calling-php-functions.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -calling-php-callable ---DESCRIPTION-- -call callable object of class from user space -call method of class from user space ---SKIPIF-- - ---FILEEOF-- -a = $a;} - public function __invoke($b){ echo "CallableClass({$this->a})::__invoke($b)";} - private $a = ""; -} - -class usrspClass { - function __construct($a){ $this->a = $a;} - function someMethod($b) {echo "usrspClass({$this->a})::someMethod($b)";} - private $a = ""; -} - - -TestVariables\fnFromUserSpace2(); - - ---EXPECT-- -2014-03-28 21:22:15 -2014-03-28 21:22:15 -usrspClass(Mount Meru)::someMethod(is in the Arctics) -CallableClass(Arctics around mount Meru)::__invoke(is the birthplace of the Hyperboreans) \ No newline at end of file diff --git a/tests/php/phpt/variables/019-HashMember-1.phpt b/tests/php/phpt/variables/019-HashMember-1.phpt deleted file mode 100644 index ebc126f..0000000 --- a/tests/php/phpt/variables/019-HashMember-1.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -get_complex_array (test HashMember #1) ---SKIPIF-- - ---FILEEOF-- - - array ( - 'key2' => 'val2', - 'key3' => 'val3', - ), -) \ No newline at end of file diff --git a/tests/php/phpt/variables/020-HashMember-2.phpt b/tests/php/phpt/variables/020-HashMember-2.phpt deleted file mode 100644 index bb48d06..0000000 --- a/tests/php/phpt/variables/020-HashMember-2.phpt +++ /dev/null @@ -1,76 +0,0 @@ ---TEST-- -get_complex_array (test HashMember #2) ---SKIPIF-- - ---FILEEOF-- - - array ( - 'k3' => 'v1', - 'k2' => - array ( - 'k4' => 'v2', - ), - ), - 'k5' => - array ( - 1 => 'v3', - ), - 2 => - array ( - 'k6' => - array ( - 1 => 'v4', - ), - ), - 3 => - array ( - 4 => - array ( - 1 => 'v5', - 2 => - array ( - 5 => - array ( - 7 => - array ( - 11 => 'v5', - 'k' => 'v5', - ), - ), - ), - ), - ), - 'c' => - array ( - 0 => 'nested value', - 1 => NULL, - 2 => - array ( - ), - 3 => 'example', - ), -) \ No newline at end of file diff --git a/tests/php/phpt/variables/021-HashMember-3.phpt b/tests/php/phpt/variables/021-HashMember-3.phpt deleted file mode 100644 index 20f43ba..0000000 --- a/tests/php/phpt/variables/021-HashMember-3.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -get_complex_array (test HashMember #3) ---SKIPIF-- - ---FILEEOF-- - - array ( - 'key2' => 'val1-2', - ), -) \ No newline at end of file diff --git a/tests/php/phpt/variables/022-HashMember-4.phpt b/tests/php/phpt/variables/022-HashMember-4.phpt deleted file mode 100644 index cbdc8b0..0000000 --- a/tests/php/phpt/variables/022-HashMember-4.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -get_complex_array (test HashMember #4) ---SKIPIF-- - ---FILEEOF-- - - array ( - 'key1' => - array ( - 'key2' => - array ( - 'key3' => 'val', - ), - ), - ), - 1 => - array ( - 'str1' => 'example', - 'str2' => 'example', - ), - 2 => - array ( - 'str1' => - array ( - 'str2' => 'val1-2', - 'str3' => 'val1-3', - ), - ), -) \ No newline at end of file diff --git a/tests/php/phpt/variables/023-cookie.phpt b/tests/php/phpt/variables/023-cookie.phpt deleted file mode 100644 index 0648188..0000000 --- a/tests/php/phpt/variables/023-cookie.phpt +++ /dev/null @@ -1,16 +0,0 @@ ---TEST-- -test cookie ---SKIPIF-- - ---COOKIE-- -peace=toTheWorld;freedom=toThePeople ---FILEEOF-- - ---GET-- -a=test&b=http://phpcpp.com&ar[elm1]=1234&ar[elm2]=0660&a=0234 ---POST-- -c=

string

&d=12345.7&e[]=e1&e[]=e2 ---FILEEOF-- -string

-_POST[d] = 12345.7 - -Notice: Array to string conversion in %s/024-get-post.php on line %d -_POST[e] = Array -_POST[e][0] = e1 -_POST[e][1] = e2 \ No newline at end of file diff --git a/tests/php/phpt/variables/025-post-raw1.phpt b/tests/php/phpt/variables/025-post-raw1.phpt deleted file mode 100644 index 76fed0f..0000000 --- a/tests/php/phpt/variables/025-post-raw1.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -test post raw #1 ---SKIPIF-- - ---POST_RAW-- -Content-type: multipart/form-data, boundary=AaB03x - ---AaB03x -content-disposition: form-data; name="username" - -valmat ---AaB03x -content-disposition: form-data; name="text" - -Hellow World! ---AaB03x ---FILEEOF-- - $v) {echo "\n$k => $v";} - ---EXPECTF-- -username => valmat -text => Hellow World! \ No newline at end of file diff --git a/tests/php/phpt/variables/026-post-raw2.phpt b/tests/php/phpt/variables/026-post-raw2.phpt deleted file mode 100644 index 4bee44c..0000000 --- a/tests/php/phpt/variables/026-post-raw2.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Post files ---DESCRIPTION-- -Simulates the file upload method post -test post raw #2 ---SKIPIF-- - ---POST_RAW-- -Content-type: multipart/form-data, boundary=AaB03x - ---AaB03x -content-disposition: form-data; name="flnm[]"; filename="file1.txt" -Content-Type: text/plain - -abcdef123456789 ---AaB03x -content-disposition: form-data; name="flnm[]"; filename="file2.txt" -Content-Type: text/plain - -«£¥§©®°±¶Я⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰» ---AaB03x ---FILEEOF-- - ---ENV-- -return << Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 -ENVVAR1 => ENVVAL1 -HTTP_REFERER => http://spb.1gs.ru/ -REQUEST_METHOD => GET -HTTP_HOST => phpcpp.com diff --git a/tests/php/phpt/variables/028-compare1.phpt b/tests/php/phpt/variables/028-compare1.phpt deleted file mode 100644 index 2885fe8..0000000 --- a/tests/php/phpt/variables/028-compare1.phpt +++ /dev/null @@ -1,53 +0,0 @@ ---TEST-- -Test bool Value::operator==(const Value &value) const ---SKIPIF-- - ---FILEEOF-- - ---FILEEOF-- -