fix tests for array/object BC

This commit is contained in:
Stanislav Malyshev 2008-11-25 22:13:44 +00:00
parent 8f32490ca3
commit b2cd1a717a
14 changed files with 24 additions and 62 deletions

View File

@ -280,23 +280,13 @@ Warning: array_key_exists(): The first argument should be either a string or an
bool(false) bool(false)
*** Testing operation on objects *** *** Testing operation on objects ***
bool(false)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d bool(false)
NULL bool(true)
bool(false)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d bool(true)
NULL
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
bool(true) bool(true)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d Warning: array_key_exists(): The first argument should be either a string or an integer in %s on line %d
NULL bool(false)
Done Done

View File

@ -52,15 +52,11 @@ echo "Done";
-- Do not assign a value to $class1->var3 -- -- Do not assign a value to $class1->var3 --
$key = var1: $key = var1:
bool(true)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
$key = var3: $key = var3:
bool(true)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
$class1: $class1:
object(myClass)#%d (3) { object(myClass)#1 (3) {
["var1"]=> ["var1"]=>
string(1) "a" string(1) "a"
["var2"]=> ["var2"]=>
@ -71,11 +67,9 @@ object(myClass)#%d (3) {
-- Assign a value to $class2->var3 -- -- Assign a value to $class2->var3 --
$key = var3: $key = var3:
bool(true)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
$class2: $class2:
object(myClass)#%d (3) { object(myClass)#2 (3) {
["var1"]=> ["var1"]=>
string(1) "x" string(1) "x"
["var2"]=> ["var2"]=>

View File

@ -54,19 +54,13 @@ echo "Done";
-- Do not assign a value to $class1->var3 -- -- Do not assign a value to $class1->var3 --
$key = var1: $key = var1:
bool(true)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
$key = var2: $key = var2:
bool(false)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
$key = var3: $key = var3:
bool(false)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
$class1: $class1:
object(myClass)#%d (3) { object(myClass)#1 (3) {
["var1"]=> ["var1"]=>
string(1) "a" string(1) "a"
["var2":protected]=> ["var2":protected]=>
@ -77,11 +71,9 @@ object(myClass)#%d (3) {
-- Assign a value to $class2->var3 -- -- Assign a value to $class2->var3 --
$key = var3: $key = var3:
bool(false)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
$class2: $class2:
object(myClass)#%d (3) { object(myClass)#2 (3) {
["var1"]=> ["var1"]=>
string(1) "x" string(1) "x"
["var2":protected]=> ["var2":protected]=>

View File

@ -206,9 +206,7 @@ Warning: array_key_exists() expects parameter 2 to be array, string given in %s
NULL NULL
-- Iteration 22 -- -- Iteration 22 --
bool(false)
Warning: array_key_exists() expects parameter 2 to be array, object given in %s on line %d
NULL
-- Iteration 23 -- -- Iteration 23 --

View File

@ -198,8 +198,6 @@ Warning: current() expects parameter 1 to be array, string given in %s on line %
NULL NULL
-- Iteration 21 -- -- Iteration 21 --
Warning: current() expects parameter 1 to be array, object given in %s on line %d
NULL NULL
-- Iteration 22 -- -- Iteration 22 --

View File

@ -201,9 +201,7 @@ Warning: end() expects parameter 1 to be array, string given in %s on line %d
NULL NULL
-- Iteration 22 -- -- Iteration 22 --
string(12) "hello, world"
Warning: end() expects parameter 1 to be array, object given in %s on line %d
NULL
-- Iteration 23 -- -- Iteration 23 --

View File

@ -201,9 +201,7 @@ Warning: key() expects parameter 1 to be array, string given in %s on line %d
NULL NULL
-- Iteration 22 -- -- Iteration 22 --
string(4) "var1"
Warning: key() expects parameter 1 to be array, object given in %s on line %d
NULL
-- Iteration 23 -- -- Iteration 23 --

View File

@ -200,9 +200,7 @@ Warning: next() expects parameter 1 to be array, string given in %s on line %d
NULL NULL
-- Iteration 22 -- -- Iteration 22 --
bool(false)
Warning: next() expects parameter 1 to be array, object given in %s on line %d
NULL
-- Iteration 23 -- -- Iteration 23 --

View File

@ -200,9 +200,7 @@ Warning: prev() expects parameter 1 to be array, string given in %s on line %d
NULL NULL
-- Iteration 22 -- -- Iteration 22 --
bool(false)
Warning: prev() expects parameter 1 to be array, object given in %s on line %d
NULL
-- Iteration 23 -- -- Iteration 23 --

View File

@ -200,9 +200,7 @@ Warning: reset() expects parameter 1 to be array, string given in %s on line %d
NULL NULL
-- Iteration 22 -- -- Iteration 22 --
bool(false)
Warning: reset() expects parameter 1 to be array, object given in %s on line %d
NULL
-- Iteration 23 -- -- Iteration 23 --