--TEST-- Test get_defined_vars() function --FILE-- ===DONE=== --EXPECT-- Simple testcase for get_defined_vars() function -- Get variables at global scope -- -- Function f1() called -- -- ..define some local variables -- array(6) { [u"vars"]=> array(0) { } [u"i"]=> int(123) [u"f"]=> float(123.456) [u"b"]=> bool(false) [u"s"]=> unicode(11) "Hello World" [u"arr"]=> array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) } } -- Function f2() called -- -- ...define some variables -- array(6) { [u"vars"]=> array(0) { } [u"i"]=> int(456) [u"f"]=> float(456.678) [u"b"]=> bool(true) [u"s"]=> unicode(9) "Goodnight" [u"arr"]=> array(2) { [0]=> unicode(3) "foo" [1]=> unicode(3) "bar" } } -- ...define some more variables -- array(9) { [u"vars"]=> array(0) { } [u"i"]=> int(456) [u"f"]=> float(456.678) [u"b"]=> bool(true) [u"s"]=> unicode(9) "Goodnight" [u"arr"]=> array(2) { [0]=> unicode(3) "foo" [1]=> unicode(3) "bar" } [u"i1"]=> int(456) [u"f1"]=> float(456.678) [u"b1"]=> bool(true) } ===DONE===