From f0f302fe7fe1fd78623e3a6527410d1e28801efe Mon Sep 17 00:00:00 2001 From: andy wharmby Date: Tue, 16 Jun 2009 08:59:39 +0000 Subject: [PATCH] New class related tests. Tested on Windows, Linux and Linux 64. Tests written by Iain Lewis --- .../tests/class_object/AutoInterface.inc | 5 + .../tests/class_object/AutoLoaded.inc | 5 + ext/standard/tests/class_object/AutoTest.inc | 13 ++ .../class_object/get_class_vars_error.phpt | 38 ++++ .../get_class_vars_variation1.phpt | 181 ++++++++++++++++ .../get_class_vars_variation2.phpt | 168 +++++++++++++++ .../get_declared_classes_variation1.phpt | 37 ++++ .../get_declared_interfaces_variation1.phpt | 37 ++++ .../class_object/interface_exists_error.phpt | 38 ++++ .../interface_exists_variation1.phpt | 184 ++++++++++++++++ .../interface_exists_variation2.phpt | 204 ++++++++++++++++++ .../interface_exists_variation3.phpt | 35 +++ .../interface_exists_variation4.phpt | 27 +++ .../is_subclass_of_variation_004.phpt | 175 +++++++++++++++ .../class_object/property_exists_error.phpt | 47 ++++ .../property_exists_variation1.phpt | 33 +++ 16 files changed, 1227 insertions(+) create mode 100644 ext/standard/tests/class_object/AutoInterface.inc create mode 100644 ext/standard/tests/class_object/AutoLoaded.inc create mode 100644 ext/standard/tests/class_object/AutoTest.inc create mode 100644 ext/standard/tests/class_object/get_class_vars_error.phpt create mode 100644 ext/standard/tests/class_object/get_class_vars_variation1.phpt create mode 100644 ext/standard/tests/class_object/get_class_vars_variation2.phpt create mode 100644 ext/standard/tests/class_object/get_declared_classes_variation1.phpt create mode 100644 ext/standard/tests/class_object/get_declared_interfaces_variation1.phpt create mode 100644 ext/standard/tests/class_object/interface_exists_error.phpt create mode 100644 ext/standard/tests/class_object/interface_exists_variation1.phpt create mode 100644 ext/standard/tests/class_object/interface_exists_variation2.phpt create mode 100644 ext/standard/tests/class_object/interface_exists_variation3.phpt create mode 100644 ext/standard/tests/class_object/interface_exists_variation4.phpt create mode 100644 ext/standard/tests/class_object/is_subclass_of_variation_004.phpt create mode 100644 ext/standard/tests/class_object/property_exists_error.phpt create mode 100644 ext/standard/tests/class_object/property_exists_variation1.phpt diff --git a/ext/standard/tests/class_object/AutoInterface.inc b/ext/standard/tests/class_object/AutoInterface.inc new file mode 100644 index 0000000000..f1e5b1f58f --- /dev/null +++ b/ext/standard/tests/class_object/AutoInterface.inc @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/ext/standard/tests/class_object/AutoLoaded.inc b/ext/standard/tests/class_object/AutoLoaded.inc new file mode 100644 index 0000000000..52e6671ddc --- /dev/null +++ b/ext/standard/tests/class_object/AutoLoaded.inc @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/ext/standard/tests/class_object/AutoTest.inc b/ext/standard/tests/class_object/AutoTest.inc new file mode 100644 index 0000000000..0627096fff --- /dev/null +++ b/ext/standard/tests/class_object/AutoTest.inc @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/ext/standard/tests/class_object/get_class_vars_error.phpt b/ext/standard/tests/class_object/get_class_vars_error.phpt new file mode 100644 index 0000000000..0399e6023a --- /dev/null +++ b/ext/standard/tests/class_object/get_class_vars_error.phpt @@ -0,0 +1,38 @@ +--TEST-- +Test get_class_vars() function : error conditions +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing get_class_vars() : error conditions *** + +-- Testing get_class_vars() function with more than expected no. of arguments -- + +Warning: get_class_vars() expects exactly 1 parameter, 2 given in %sget_class_vars_error.php on line %d +NULL + +-- Testing get_class_vars() function with less than expected no. of arguments -- + +Warning: get_class_vars() expects exactly 1 parameter, 0 given in %sget_class_vars_error.php on line %d +NULL +===DONE=== \ No newline at end of file diff --git a/ext/standard/tests/class_object/get_class_vars_variation1.phpt b/ext/standard/tests/class_object/get_class_vars_variation1.phpt new file mode 100644 index 0000000000..649e9ae5af --- /dev/null +++ b/ext/standard/tests/class_object/get_class_vars_variation1.phpt @@ -0,0 +1,181 @@ +--TEST-- +Test get_class_vars() function : usage variation +--FILE-- + 1, 'two' => 2); + +//array of values to iterate over +$inputs = array( + + // int data + 'int 0' => 0, + 'int 1' => 1, + 'int 12345' => 12345, + 'int -12345' => -2345, + + // float data + 'float 10.5' => 10.5, + 'float -10.5' => -10.5, + 'float 12.3456789000e10' => 12.3456789000e10, + 'float -12.3456789000e10' => -12.3456789000e10, + 'float .5' => .5, + + // array data + 'empty array' => array(), + 'int indexed array' => $index_array, + 'associative array' => $assoc_array, + 'nested arrays' => array('foo', $index_array, $assoc_array), + + // null data + 'uppercase NULL' => NULL, + 'lowercase null' => null, + + // boolean data + 'lowercase true' => true, + 'lowercase false' =>false, + 'uppercase TRUE' =>TRUE, + 'uppercase FALSE' =>FALSE, + + // empty data + 'empty string DQ' => "", + 'empty string SQ' => '', + + // object data + 'instance of classWithToString' => new classWithToString(), + 'instance of classWithoutToString' => new classWithoutToString(), + + // undefined data + 'undefined var' => @$undefined_var, + + // unset data + 'unset var' => @$unset_var, +); + +// loop through each element of the array for method_name + +foreach($inputs as $key =>$value) { + echo "\n--$key--\n"; + var_dump( get_class_vars($value) ); +}; + +?> +===DONE=== +--EXPECTF-- +*** Testing get_class_vars() : usage variation *** + +--int 0-- +bool(false) + +--int 1-- +bool(false) + +--int 12345-- +bool(false) + +--int -12345-- +bool(false) + +--float 10.5-- +bool(false) + +--float -10.5-- +bool(false) + +--float 12.3456789000e10-- +bool(false) + +--float -12.3456789000e10-- +bool(false) + +--float .5-- +bool(false) + +--empty array-- + +Warning: get_class_vars() expects parameter 1 to be string, array given in %sget_class_vars_variation1.php on line %d +NULL + +--int indexed array-- + +Warning: get_class_vars() expects parameter 1 to be string, array given in %sget_class_vars_variation1.php on line %d +NULL + +--associative array-- + +Warning: get_class_vars() expects parameter 1 to be string, array given in %sget_class_vars_variation1.php on line %d +NULL + +--nested arrays-- + +Warning: get_class_vars() expects parameter 1 to be string, array given in %sget_class_vars_variation1.php on line %d +NULL + +--uppercase NULL-- +bool(false) + +--lowercase null-- +bool(false) + +--lowercase true-- +bool(false) + +--lowercase false-- +bool(false) + +--uppercase TRUE-- +bool(false) + +--uppercase FALSE-- +bool(false) + +--empty string DQ-- +bool(false) + +--empty string SQ-- +bool(false) + +--instance of classWithToString-- +bool(false) + +--instance of classWithoutToString-- + +Warning: get_class_vars() expects parameter 1 to be string, object given in %sget_class_vars_variation1.php on line %d +NULL + +--undefined var-- +bool(false) + +--unset var-- +bool(false) +===DONE=== diff --git a/ext/standard/tests/class_object/get_class_vars_variation2.phpt b/ext/standard/tests/class_object/get_class_vars_variation2.phpt new file mode 100644 index 0000000000..fad5716745 --- /dev/null +++ b/ext/standard/tests/class_object/get_class_vars_variation2.phpt @@ -0,0 +1,168 @@ +--TEST-- +Test get_class_vars() function : testing visibility +--FILE-- +test(); + +echo "\n-- From a static context --\n"; +Tester::testStatic(); + + +echo "\n-- From inside an parent object instance --\n"; +$parent = new Ancestor(); +$parent->test(); + +echo "\n-- From a parents static context --\n"; +Ancestor::testStatic(); + + +echo "\n-- From inside a child object instance --\n"; +$child = new Child(); +$child->test(); + +echo "\n-- From a child's static context --\n"; +Child::testStatic(); +?> +===DONE=== +--EXPECTF-- +*** Testing get_class_vars() : testing visibility + +-- From global context -- +array(2) { + ["pub"]=> + string(10) "public var" + ["pubs"]=> + string(17) "public static var" +} + +-- From inside an object instance -- +array(6) { + ["pub"]=> + string(10) "public var" + ["prot"]=> + string(13) "protected var" + ["priv"]=> + string(11) "private var" + ["pubs"]=> + string(17) "public static var" + ["prots"]=> + string(20) "protected static var" + ["privs"]=> + string(18) "private static var" +} + +-- From a static context -- +array(6) { + ["pub"]=> + string(10) "public var" + ["prot"]=> + string(13) "protected var" + ["priv"]=> + string(11) "private var" + ["pubs"]=> + string(17) "public static var" + ["prots"]=> + string(20) "protected static var" + ["privs"]=> + string(18) "private static var" +} + +-- From inside an parent object instance -- +array(4) { + ["pub"]=> + string(10) "public var" + ["prot"]=> + string(13) "protected var" + ["pubs"]=> + string(17) "public static var" + ["prots"]=> + string(20) "protected static var" +} + +-- From a parents static context -- +array(4) { + ["pub"]=> + string(10) "public var" + ["prot"]=> + string(13) "protected var" + ["pubs"]=> + string(17) "public static var" + ["prots"]=> + string(20) "protected static var" +} + +-- From inside a child object instance -- +array(4) { + ["pub"]=> + string(10) "public var" + ["prot"]=> + string(13) "protected var" + ["pubs"]=> + string(17) "public static var" + ["prots"]=> + string(20) "protected static var" +} + +-- From a child's static context -- +array(4) { + ["pub"]=> + string(10) "public var" + ["prot"]=> + string(13) "protected var" + ["pubs"]=> + string(17) "public static var" + ["prots"]=> + string(20) "protected static var" +} +===DONE=== diff --git a/ext/standard/tests/class_object/get_declared_classes_variation1.phpt b/ext/standard/tests/class_object/get_declared_classes_variation1.phpt new file mode 100644 index 0000000000..259f5dc0f8 --- /dev/null +++ b/ext/standard/tests/class_object/get_declared_classes_variation1.phpt @@ -0,0 +1,37 @@ +--TEST-- +Test get_declared_classes() function : testing autoloaded classes +--FILE-- + +--EXPECTF-- +*** Testing get_declared_classes() : testing autoloaded classes *** + +-- before instance is declared -- +bool(false) + +-- after instance is declared -- +bool(true) + +DONE diff --git a/ext/standard/tests/class_object/get_declared_interfaces_variation1.phpt b/ext/standard/tests/class_object/get_declared_interfaces_variation1.phpt new file mode 100644 index 0000000000..56e6161b23 --- /dev/null +++ b/ext/standard/tests/class_object/get_declared_interfaces_variation1.phpt @@ -0,0 +1,37 @@ +--TEST-- +Test get_declared_interfaces() function : autoloading of interfaces +--FILE-- + +--EXPECTF-- +*** Testing get_declared_interfaces() : autoloading of interfaces *** + +-- before interface is used -- +bool(false) + +-- after interface is used -- +bool(true) + +DONE diff --git a/ext/standard/tests/class_object/interface_exists_error.phpt b/ext/standard/tests/class_object/interface_exists_error.phpt new file mode 100644 index 0000000000..bf95a43050 --- /dev/null +++ b/ext/standard/tests/class_object/interface_exists_error.phpt @@ -0,0 +1,38 @@ +--TEST-- +Test interface_exists() function : error conditions +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing interface_exists() : error conditions *** + +-- Testing interface_exists() function with Zero arguments -- + +Warning: interface_exists() expects at least 1 parameter, 0 given in %sinterface_exists_error.php on line %d +NULL + +-- Testing interface_exists() function with more than expected no. of arguments -- + +Warning: interface_exists() expects at most 2 parameters, 3 given in %sinterface_exists_error.php on line %d +NULL +===DONE=== \ No newline at end of file diff --git a/ext/standard/tests/class_object/interface_exists_variation1.phpt b/ext/standard/tests/class_object/interface_exists_variation1.phpt new file mode 100644 index 0000000000..34d0e1e6b0 --- /dev/null +++ b/ext/standard/tests/class_object/interface_exists_variation1.phpt @@ -0,0 +1,184 @@ +--TEST-- +Test interface_exists() function : usage variation +--FILE-- + 1, 'two' => 2); + +//array of values to iterate over +$inputs = array( + + // int data + 'int 0' => 0, + 'int 1' => 1, + 'int 12345' => 12345, + 'int -12345' => -2345, + + // float data + 'float 10.5' => 10.5, + 'float -10.5' => -10.5, + 'float 12.3456789000e10' => 12.3456789000e10, + 'float -12.3456789000e10' => -12.3456789000e10, + 'float .5' => .5, + + // array data + 'empty array' => array(), + 'int indexed array' => $index_array, + 'associative array' => $assoc_array, + 'nested arrays' => array('foo', $index_array, $assoc_array), + + // null data + 'uppercase NULL' => NULL, + 'lowercase null' => null, + + // boolean data + 'lowercase true' => true, + 'lowercase false' =>false, + 'uppercase TRUE' =>TRUE, + 'uppercase FALSE' =>FALSE, + + // empty data + 'empty string DQ' => "", + 'empty string SQ' => '', + + // object data + 'instance of classWithToString' => new classWithToString(), + 'instance of classWithoutToString' => new classWithoutToString(), + + // undefined data + 'undefined var' => @$undefined_var, + + // unset data + 'unset var' => @$unset_var, +); + +// loop through each element of the array for classname + +foreach($inputs as $key =>$value) { + echo "\n--$key--\n"; + var_dump( interface_exists($value, $autoload) ); +}; + +?> +===DONE=== +--EXPECTF-- +*** Testing interface_exists() : usage variation *** + +--int 0-- +bool(false) + +--int 1-- +bool(false) + +--int 12345-- +bool(false) + +--int -12345-- +bool(false) + +--float 10.5-- +bool(false) + +--float -10.5-- +bool(false) + +--float 12.3456789000e10-- +bool(false) + +--float -12.3456789000e10-- +bool(false) + +--float .5-- +bool(false) + +--empty array-- + +Warning: interface_exists() expects parameter 1 to be string, array given in %sinterface_exists_variation1.php on line %d +NULL + +--int indexed array-- + +Warning: interface_exists() expects parameter 1 to be string, array given in %sinterface_exists_variation1.php on line %d +NULL + +--associative array-- + +Warning: interface_exists() expects parameter 1 to be string, array given in %sinterface_exists_variation1.php on line %d +NULL + +--nested arrays-- + +Warning: interface_exists() expects parameter 1 to be string, array given in %sinterface_exists_variation1.php on line %d +NULL + +--uppercase NULL-- +bool(false) + +--lowercase null-- +bool(false) + +--lowercase true-- +bool(false) + +--lowercase false-- +bool(false) + +--uppercase TRUE-- +bool(false) + +--uppercase FALSE-- +bool(false) + +--empty string DQ-- +bool(false) + +--empty string SQ-- +bool(false) + +--instance of classWithToString-- +bool(false) + +--instance of classWithoutToString-- + +Warning: interface_exists() expects parameter 1 to be string, object given in %sinterface_exists_variation1.php on line %d +NULL + +--undefined var-- +bool(false) + +--unset var-- +bool(false) +===DONE=== \ No newline at end of file diff --git a/ext/standard/tests/class_object/interface_exists_variation2.phpt b/ext/standard/tests/class_object/interface_exists_variation2.phpt new file mode 100644 index 0000000000..4137d8a0f9 --- /dev/null +++ b/ext/standard/tests/class_object/interface_exists_variation2.phpt @@ -0,0 +1,204 @@ +--TEST-- +Test interface_exists() function : usage variation +--FILE-- + 1, 'two' => 2); + +//array of values to iterate over +$inputs = array( + + // int data + 'int 0' => 0, + 'int 1' => 1, + 'int 12345' => 12345, + 'int -12345' => -2345, + + // float data + 'float 10.5' => 10.5, + 'float -10.5' => -10.5, + 'float 12.3456789000e10' => 12.3456789000e10, + 'float -12.3456789000e10' => -12.3456789000e10, + 'float .5' => .5, + + // array data + 'empty array' => array(), + 'int indexed array' => $index_array, + 'associative array' => $assoc_array, + 'nested arrays' => array('foo', $index_array, $assoc_array), + + // null data + 'uppercase NULL' => NULL, + 'lowercase null' => null, + + // boolean data + 'lowercase true' => true, + 'lowercase false' =>false, + 'uppercase TRUE' =>TRUE, + 'uppercase FALSE' =>FALSE, + + // empty data + 'empty string DQ' => "", + 'empty string SQ' => '', + + // string data + 'string DQ' => "string", + 'string SQ' => 'string', + 'mixed case string' => "sTrInG", + 'heredoc' => $heredoc, + + // object data + 'instance of classWithToString' => new classWithToString(), + 'instance of classWithoutToString' => new classWithoutToString(), + + // undefined data + 'undefined var' => @$undefined_var, + + // unset data + 'unset var' => @$unset_var, +); + +// loop through each element of the array for autoload + +foreach($inputs as $key =>$value) { + echo "\n--$key--\n"; + var_dump( interface_exists($classname, $value) ); +}; + +?> +===DONE=== +--EXPECTF-- +*** Testing interface_exists() : usage variation *** + +--int 0-- +bool(false) + +--int 1-- +bool(false) + +--int 12345-- +bool(false) + +--int -12345-- +bool(false) + +--float 10.5-- +bool(false) + +--float -10.5-- +bool(false) + +--float 12.3456789000e10-- +bool(false) + +--float -12.3456789000e10-- +bool(false) + +--float .5-- +bool(false) + +--empty array-- + +Warning: interface_exists() expects parameter 2 to be boolean, array given in %sinterface_exists_variation2.php on line %d +NULL + +--int indexed array-- + +Warning: interface_exists() expects parameter 2 to be boolean, array given in %sinterface_exists_variation2.php on line %d +NULL + +--associative array-- + +Warning: interface_exists() expects parameter 2 to be boolean, array given in %sinterface_exists_variation2.php on line %d +NULL + +--nested arrays-- + +Warning: interface_exists() expects parameter 2 to be boolean, array given in %sinterface_exists_variation2.php on line %d +NULL + +--uppercase NULL-- +bool(false) + +--lowercase null-- +bool(false) + +--lowercase true-- +bool(false) + +--lowercase false-- +bool(false) + +--uppercase TRUE-- +bool(false) + +--uppercase FALSE-- +bool(false) + +--empty string DQ-- +bool(false) + +--empty string SQ-- +bool(false) + +--string DQ-- +bool(false) + +--string SQ-- +bool(false) + +--mixed case string-- +bool(false) + +--heredoc-- +bool(false) + +--instance of classWithToString-- + +Warning: interface_exists() expects parameter 2 to be boolean, object given in %sinterface_exists_variation2.php on line %d +NULL + +--instance of classWithoutToString-- + +Warning: interface_exists() expects parameter 2 to be boolean, object given in %sinterface_exists_variation2.php on line %d +NULL + +--undefined var-- +bool(false) + +--unset var-- +bool(false) +===DONE=== diff --git a/ext/standard/tests/class_object/interface_exists_variation3.phpt b/ext/standard/tests/class_object/interface_exists_variation3.phpt new file mode 100644 index 0000000000..d25d74bc41 --- /dev/null +++ b/ext/standard/tests/class_object/interface_exists_variation3.phpt @@ -0,0 +1,35 @@ +--TEST-- +Test interface_exists() function : autoloaded interface +--FILE-- + +--EXPECTF-- +*** Testing interface_exists() : autoloaded interface *** + +-- no autoloading -- +bool(false) + +-- with autoloading -- +bool(true) + +DONE \ No newline at end of file diff --git a/ext/standard/tests/class_object/interface_exists_variation4.phpt b/ext/standard/tests/class_object/interface_exists_variation4.phpt new file mode 100644 index 0000000000..c059805623 --- /dev/null +++ b/ext/standard/tests/class_object/interface_exists_variation4.phpt @@ -0,0 +1,27 @@ +--TEST-- +Test interface_exists() function : test autoload default value +--FILE-- + +--EXPECTF-- +*** Testing interface_exists() : test autoload default value *** +bool(true) + +DONE \ No newline at end of file diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt new file mode 100644 index 0000000000..72a02a0b2b --- /dev/null +++ b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt @@ -0,0 +1,175 @@ +--TEST-- +Test is_subclass_of() function : usage variations - unexpected type for arg 1 with valid class in arg 2. +--FILE-- + 'red', 'item' => 'pen'), + + // null data + NULL, + null, + + // boolean data + true, + false, + TRUE, + FALSE, + + // empty data + "", + '', + + // string data + "string", + 'String', + + // undefined data + $undefined_var, + + // unset data + $unset_var, +); + +// loop through each element of the array for object + +foreach($values as $value) { + echo "\nArg value $value \n"; + var_dump( is_subclass_of($value, $class_name) ); +}; + +echo "Done"; +?> +--EXPECTF-- +*** Testing is_subclass_of() : usage variations *** +Error: 8 - Undefined variable: undefined_var, %s(69) +Error: 8 - Undefined variable: unset_var, %s(72) + +Arg value 0 +bool(false) + +Arg value 1 +bool(false) + +Arg value 12345 +bool(false) + +Arg value -2345 +bool(false) + +Arg value 10.5 +bool(false) + +Arg value -10.5 +bool(false) + +Arg value 101234567000 +bool(false) + +Arg value 1.07654321E-9 +bool(false) + +Arg value 0.5 +bool(false) + +Arg value Array +bool(false) + +Arg value Array +bool(false) + +Arg value Array +bool(false) + +Arg value Array +bool(false) + +Arg value Array +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value 1 +bool(false) + +Arg value +bool(false) + +Arg value +Error: 2 - Unknown class passed as parameter, %s(79) +bool(false) + +Arg value +Error: 2 - Unknown class passed as parameter, %s(79) +bool(false) + +Arg value string +In __autoload(string) +Error: 2 - Unknown class passed as parameter, %s(79) +bool(false) + +Arg value String +In __autoload(String) +Error: 2 - Unknown class passed as parameter, %s(79) +bool(false) + +Arg value +bool(false) + +Arg value +bool(false) +Done \ No newline at end of file diff --git a/ext/standard/tests/class_object/property_exists_error.phpt b/ext/standard/tests/class_object/property_exists_error.phpt new file mode 100644 index 0000000000..e40e08b32a --- /dev/null +++ b/ext/standard/tests/class_object/property_exists_error.phpt @@ -0,0 +1,47 @@ +--TEST-- +Test property_exists() function : error conditions +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing property_exists() : error conditions *** + +-- Testing property_exists() function with more than expected no. of arguments -- + +Warning: property_exists() expects exactly 2 parameters, 3 given in %sproperty_exists_error.php on line %d +NULL + +-- Testing property_exists() function with less than expected no. of arguments -- + +Warning: property_exists() expects exactly 2 parameters, 1 given in %sproperty_exists_error.php on line %d +NULL + +-- Testing property_exists() function with incorrect arguments -- + +Warning: First parameter must either be an object or the name of an existing class in %sproperty_exists_error.php on line %d +NULL +===DONE=== \ No newline at end of file diff --git a/ext/standard/tests/class_object/property_exists_variation1.phpt b/ext/standard/tests/class_object/property_exists_variation1.phpt new file mode 100644 index 0000000000..1505a4bafa --- /dev/null +++ b/ext/standard/tests/class_object/property_exists_variation1.phpt @@ -0,0 +1,33 @@ +--TEST-- +Test property_exists() function : class auto loading +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing property_exists() : class auto loading *** + +testing property in autoloaded class +bool(true) + +testing __get magic method +bool(false) +===DONE=== \ No newline at end of file -- 2.40.0