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/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 - 30 files changed, 1709 deletions(-) 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 (limited to 'tests/php/phpt/variables') diff --git a/tests/php/phpt/variables/001-process_globals.phpt b/tests/php/phpt/variables/001-process_globals.phpt deleted file mode 100644 index 022e99c..0000000 --- a/tests/php/phpt/variables/001-process_globals.phpt +++ /dev/null @@ -1,47 +0,0 @@ ---TEST-- -Global variables in PHP-CPP ---DESCRIPTION-- -The author of the original: Jasper van Eck ---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-- -