- Fixed tests

This commit is contained in:
Felipe Pena 2008-07-27 17:37:07 +00:00
parent cb78e70854
commit fa71adbbb1
8 changed files with 27 additions and 20 deletions

View File

@ -22,7 +22,7 @@ var_dump(each($a));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for each() in %s on line %d
Warning: each() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: Variable passed to each() is not an array or object in %s on line %d

View File

@ -23,18 +23,18 @@ var_dump(constant("test const"));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for define() in %s on line %d
Warning: define() expects at least 2 parameters, 0 given in %s on line %d
NULL
Warning: Wrong parameter count for define() in %s on line %d
Warning: define() expects at least 2 parameters, 1 given in %s on line %d
NULL
bool(true)
Notice: Constant true already defined in %s on line %d
bool(false)
Warning: define() expects parameter 3 to be boolean, array given in %s on line %d
NULL
Notice: Array to string conversion in %s on line %d
bool(true)
Warning: define() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d
NULL
bool(true)
bool(true)
bool(true)

View File

@ -40,7 +40,9 @@ unicode(3) "foo"
Warning: get_class() called without object from outside a class in %s on line %d
bool(false)
bool(false)
Warning: get_class() expects parameter 1 to be object, Unicode string given in %s on line %d
NULL
unicode(3) "foo"
unicode(4) "foo2"
Done

View File

@ -53,10 +53,10 @@ $bar->test();
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for property_exists() in %s on line %d
Warning: property_exists() expects exactly 2 parameters, 0 given in %s on line %d
NULL
Warning: Wrong parameter count for property_exists() in %s on line %d
Warning: property_exists() expects exactly 2 parameters, 1 given in %s on line %d
NULL
bool(true)
bool(false)

View File

@ -45,17 +45,17 @@ var_dump(count(get_extension_funcs("zend")));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for get_resource_type() in %s on line %d
Warning: get_resource_type() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: Supplied argument is not a valid resource handle in %s on line %d
bool(false)
Warning: get_resource_type() expects parameter 1 to be resource, Unicode string given in %s on line %d
NULL
unicode(6) "stream"
unicode(7) "Unknown"
unicode(5) "array"
int(%d)
unicode(5) "array"
int(%d)
int(0)
Warning: get_loaded_extensions() expects at most 1 parameter, 2 given in %s on line %d
NULL

View File

@ -20,11 +20,14 @@ foo(1,2);
echo "Done\n";
?>
--EXPECTF--
bool(false)
Warning: func_get_arg() expects exactly 1 parameter, 3 given in %s on line %d
NULL
Warning: func_get_arg(): Called from the global scope - no function context in %s on line %d
bool(false)
bool(false)
Warning: func_get_arg() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: func_get_arg(): Argument 1 not passed to function in %s on line %d
bool(false)

View File

@ -31,7 +31,7 @@ $test->bar();
?>
--EXPECTF--
object(Exception)#2 (6) {
object(Exception)#2 (%d) {
[u"message":protected]=>
unicode(3) "foo"
[u"string":u"Exception":private]=>
@ -61,6 +61,8 @@ object(Exception)#2 (6) {
}
}
}
[u"previous":u"Exception":private]=>
NULL
}
'test' => '0'
'test_2' => '1'

View File

@ -34,7 +34,7 @@ var_dump(error_reporting());
echo "Done\n";
?>
--EXPECT--
int(16383)
int(16383)
int(14335)
int(32767)
int(32767)
int(30719)
Done