//Note: No error conditions relating to passing arugments can be tested
// because these are not functions but statements, it will result in syntax error.
-echo "Done\n";
+?>
+===DONE===
--EXPECTF--
*** Testing unset(), empty() & isset() with scalar variables ***
-- Iteration 1 --
*** Testing unset(), emtpy() & isset() with resource variables ***
-- Iteration 1 --
-resource(5) of type (stream)
+resource(%d) of type (stream)
bool(true)
bool(false)
bool(true)
-resource(5) of type (stream)
+resource(%d) of type (stream)
bool(false)
bool(true)
bool(false)
Notice: Undefined variable: resource in %s on line %d
NULL
-- Iteration 2 --
-resource(6) of type (stream)
+resource(%d) of type (stream)
bool(true)
bool(false)
bool(true)
-resource(6) of type (stream)
+resource(%d) of type (stream)
bool(false)
bool(true)
bool(false)
bool(true)
*** Testing unset(), empty() & isset() with objects ***
-object(Point)#1 (3) {
+object(Point)#%d (3) {
["x"]=>
int(30)
["y"]=>
Notice: Undefined variable: lable in %s on line %d
bool(true)
-object(Point)#1 (3) {
+object(Point)#%d (3) {
["x"]=>
int(30)
["y"]=>
["lable"]=>
string(6) "Point1"
}
-object(Point)#1 (2) {
+object(Point)#%d (2) {
["y"]=>
int(40)
["lable"]=>
}
bool(false)
bool(true)
-object(Point)#1 (0) {
+object(Point)#%d (0) {
}
bool(true)
bool(false)
[2]=>
string(9) "testPoint"
}
-object(Point)#1 (3) {
+object(Point)#%d (3) {
["x"]=>
int(5)
["y"]=>
bool(false)
bool(true)
int(10)
-Done
+===DONE===
var_dump($db);
?>
+===DONE===
--EXPECTF--
Notice: Undefined variable: db in %sbug30162.php on line 35
NULL
-object(hariCow)#1 (2) {
+object(hariCow)#%d (2) {
["x"]=>
string(1) "x"
["y"]=>
string(1) "y"
}
+===DONE===
\ No newline at end of file