echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing class_exists() : basic functionality ***
Calling class_exists() on non-existent class with autoload explicitly enabled:
In __autoload(C)
Calling class_exists() on existing class with autoload unspecified:
bool(true)
-Done
\ No newline at end of file
+Done
Arg value
bool(false)
-Done
\ No newline at end of file
+Done
Arg value
bool(false)
-Done
\ No newline at end of file
+Done
echo "Done"
?>
---EXPECTF--
+--EXPECT--
bool(true)
-Done
\ No newline at end of file
+Done
?>
===DONE===
---EXPECTF--
+--EXPECT--
A
-
B
?>
===DONE===
---EXPECTF--
+--EXPECT--
A
-
B
Warning: Wrong parameter count for get_class() in %s on line 14
NULL
-Done
\ No newline at end of file
+Done
echo "Done";
?>
---EXPECTF--
-*** Testing get_class_methods() : basic functionality ***
-Argument is class name:
-array(3) {
- [0]=>
- string(1) "f"
- [1]=>
- string(1) "g"
- [2]=>
- string(1) "h"
-}
-Argument is class instance:
-array(3) {
- [0]=>
- string(1) "f"
- [1]=>
- string(1) "g"
- [2]=>
- string(1) "h"
-}
-Argument is name of class which has no methods:
-array(0) {
-}
-Argument is non existent class:
-NULL
-Done
---UEXPECTF--
+--EXPECT--
*** Testing get_class_methods() : basic functionality ***
Argument is class name:
array(3) {
}
Argument is non existent class:
NULL
-Done
\ No newline at end of file
+Done
echo "Done";
?>
---EXPECTF--
-Accessing D from global scope:
-array(4) {
- [0]=>
- string(4) "pubD"
- [1]=>
- string(9) "testFromD"
- [2]=>
- string(4) "pubC"
- [3]=>
- string(9) "testFromC"
-}
-Accessing C from C:
-array(4) {
- [0]=>
- string(5) "privC"
- [1]=>
- string(5) "protC"
- [2]=>
- string(4) "pubC"
- [3]=>
- string(9) "testFromC"
-}
-Accessing D from C:
-array(7) {
- [0]=>
- string(5) "protD"
- [1]=>
- string(4) "pubD"
- [2]=>
- string(9) "testFromD"
- [3]=>
- string(5) "privC"
- [4]=>
- string(5) "protC"
- [5]=>
- string(4) "pubC"
- [6]=>
- string(9) "testFromC"
-}
-Accessing X from C:
-array(2) {
- [0]=>
- string(4) "pubX"
- [1]=>
- string(9) "testFromX"
-}
-Accessing C from D:
-array(3) {
- [0]=>
- string(5) "protC"
- [1]=>
- string(4) "pubC"
- [2]=>
- string(9) "testFromC"
-}
-Accessing D from D:
-array(7) {
- [0]=>
- string(5) "privD"
- [1]=>
- string(5) "protD"
- [2]=>
- string(4) "pubD"
- [3]=>
- string(9) "testFromD"
- [4]=>
- string(5) "protC"
- [5]=>
- string(4) "pubC"
- [6]=>
- string(9) "testFromC"
-}
-Accessing X from D:
-array(2) {
- [0]=>
- string(4) "pubX"
- [1]=>
- string(9) "testFromX"
-}
-Accessing C from X:
-array(2) {
- [0]=>
- string(4) "pubC"
- [1]=>
- string(9) "testFromC"
-}
-Accessing D from X:
-array(4) {
- [0]=>
- string(4) "pubD"
- [1]=>
- string(9) "testFromD"
- [2]=>
- string(4) "pubC"
- [3]=>
- string(9) "testFromC"
-}
-Accessing X from X:
-array(4) {
- [0]=>
- string(5) "privX"
- [1]=>
- string(5) "protX"
- [2]=>
- string(4) "pubX"
- [3]=>
- string(9) "testFromX"
-}
-Done
---UEXPECTF--
+--EXPECT--
Accessing D from global scope:
array(4) {
[0]=>
[3]=>
unicode(9) "testFromX"
}
-Done
\ No newline at end of file
+Done
C::testFromC();
echo "Done";
?>
---EXPECTF--
-Accessing I from global scope:
-array(1) {
- [0]=>
- string(4) "pubI"
-}
-Accessing C from global scope:
-array(3) {
- [0]=>
- string(4) "pubI"
- [1]=>
- string(4) "pubC"
- [2]=>
- string(9) "testFromC"
-}
-Accessing I from C:
-array(1) {
- [0]=>
- string(4) "pubI"
-}
-Accessing C from C:
-array(5) {
- [0]=>
- string(4) "pubI"
- [1]=>
- string(5) "privC"
- [2]=>
- string(5) "protC"
- [3]=>
- string(4) "pubC"
- [4]=>
- string(9) "testFromC"
-}
-Done
---UEXPECTF--
+--EXPECT--
Accessing I from global scope:
array(1) {
[0]=>
[4]=>
unicode(9) "testFromC"
}
-Done
\ No newline at end of file
+Done
Warning: Wrong parameter count for get_class_methods() in %s on line 22
NULL
-Done
\ No newline at end of file
+Done
Arg value
NULL
-Done
\ No newline at end of file
+Done
echo "Done";
?>
---EXPECTF--
-*** Testing get_class_methods() : usage variations ***
-array(1) {
- [0]=>
- string(8) "MyMeThOd"
-}
-Done
---UEXPECTF--
+--EXPECT--
*** Testing get_class_methods() : usage variations ***
array(1) {
[0]=>
unicode(8) "MyMeThOd"
}
-Done
\ No newline at end of file
+Done
Arg value: (type: boolean)
bool(false)
-Arg value: (type: string)
-bool(false)
-
-Arg value: (type: string)
-bool(false)
-
-Arg value: string (type: string)
-bool(false)
-
-Arg value: string (type: string)
-bool(false)
-
-Arg value: (type: NULL)
-bool(false)
-
-Arg value: (type: NULL)
-bool(false)
-Done
---UEXPECTF--
-*** Testing get_class() : usage variations ***
-
-Notice: Undefined variable: undefined_var in %s on line 58
-
-Notice: Undefined variable: unset_var in %s on line 61
-
-Arg value: 0 (type: integer)
-bool(false)
-
-Arg value: 1 (type: integer)
-bool(false)
-
-Arg value: 12345 (type: integer)
-bool(false)
-
-Arg value: -2345 (type: integer)
-bool(false)
-
-Arg value: 10.5 (type: double)
-bool(false)
-
-Arg value: -10.5 (type: double)
-bool(false)
-
-Arg value: 101234567000 (type: double)
-bool(false)
-
-Arg value: 1.07654321E-9 (type: double)
-bool(false)
-
-Arg value: 0.5 (type: double)
-bool(false)
-
-Notice: Array to string conversion in %s on line 67
-
-Arg value: Array (type: array)
-bool(false)
-
-Notice: Array to string conversion in %s on line 67
-
-Arg value: Array (type: array)
-bool(false)
-
-Notice: Array to string conversion in %s on line 67
-
-Arg value: Array (type: array)
-bool(false)
-
-Notice: Array to string conversion in %s on line 67
-
-Arg value: Array (type: array)
-bool(false)
-
-Notice: Array to string conversion in %s on line 67
-
-Arg value: Array (type: array)
-bool(false)
-
-Arg value: (type: NULL)
-bool(false)
-
-Arg value: (type: NULL)
-bool(false)
-
-Arg value: 1 (type: boolean)
-bool(false)
-
-Arg value: (type: boolean)
-bool(false)
-
-Arg value: 1 (type: boolean)
-bool(false)
-
-Arg value: (type: boolean)
-bool(false)
-
Arg value: (type: unicode)
bool(false)
Arg value: (type: NULL)
bool(false)
-Done
\ No newline at end of file
+Done
echo "Done";
?>
---EXPECTF--
-string(19) "caseSensitivityTest"
-Done
---UEXPECTF--
+--EXPECT--
unicode(19) "caseSensitivityTest"
-Done
\ No newline at end of file
+Done
-- Ensure userspace interfaces are not listed --
bool(false)
-Done
\ No newline at end of file
+Done
Warning: get_declared_classes() expects exactly 0 parameters, 1 given in %s on line 13
NULL
-Done
\ No newline at end of file
+Done
-- Ensure userspace interfaces are listed --
bool(true)
-Done
\ No newline at end of file
+Done
Warning: get_declared_interfaces() expects exactly 0 parameters, 1 given in %s on line 13
NULL
-Done
\ No newline at end of file
+Done
echo "\n---( Unrelated class: )---\n";
X::test($b);
?>
---EXPECTF--
-
----( Global scope: )---
-array(1) {
- ["pub"]=>
- string(6) "B::pub"
-}
-
----( Declaring class: )---
-B::test
-array(4) {
- ["hiddenPriv"]=>
- string(13) "B::hiddenPriv"
- ["priv"]=>
- string(7) "B::priv"
- ["prot"]=>
- string(7) "B::prot"
- ["pub"]=>
- string(6) "B::pub"
-}
-
----( Subclass: )---
-C::test
-array(2) {
- ["prot"]=>
- string(7) "B::prot"
- ["pub"]=>
- string(6) "B::pub"
-}
-
----( Superclass: )---
-A::test
-array(3) {
- ["prot"]=>
- string(7) "B::prot"
- ["pub"]=>
- string(6) "B::pub"
- ["hiddenPriv"]=>
- string(13) "A::hiddenPriv"
-}
-
----( Unrelated class: )---
-X::test
-array(1) {
- ["pub"]=>
- string(6) "B::pub"
-}
---UEXPECTF--
+--EXPECT--
---( Global scope: )---
array(1) {
array(1) {
[u"pub"]=>
unicode(6) "B::pub"
-}
\ No newline at end of file
+}
$b->testA($b);
?>
---EXPECTF--
-
----( Declaring class: )---
-B::testB
-array(4) {
- ["hiddenPriv"]=>
- string(13) "B::hiddenPriv"
- ["priv"]=>
- string(7) "B::priv"
- ["prot"]=>
- string(7) "B::prot"
- ["pub"]=>
- string(6) "B::pub"
-}
-
----( Superclass: )---
-A::testA
-array(3) {
- ["prot"]=>
- string(7) "B::prot"
- ["pub"]=>
- string(6) "B::pub"
- ["hiddenPriv"]=>
- string(13) "A::hiddenPriv"
-}
---UEXPECTF--
+--EXPECT--
---( Declaring class: )---
B::testB
unicode(6) "B::pub"
[u"hiddenPriv"]=>
unicode(13) "A::hiddenPriv"
-}
\ No newline at end of file
+}
Warning: Wrong parameter count for get_object_vars() in %s on line 18
NULL
-Done
\ No newline at end of file
+Done
$a = new A;
var_dump(get_object_vars($a));
?>
---EXPECTF--
+--EXPECT--
array(0) {
-}
\ No newline at end of file
+}
var_dump($arr, $obj, $a);
?>
---EXPECTF--
-array(0) {
-}
-array(2) {
- ["ref"]=>
- &string(10) "original.a"
- ["val"]=>
- string(10) "original.a"
-}
-array(2) {
- ["ref"]=>
- &string(11) "changed.ref"
- ["val"]=>
- string(11) "changed.val"
-}
-object(stdClass)#1 (2) {
- ["ref"]=>
- &string(11) "changed.ref"
- ["val"]=>
- string(10) "original.a"
-}
-string(11) "changed.ref"
---UEXPECTF--
+--EXPECT--
array(0) {
}
array(2) {
[u"val"]=>
unicode(10) "original.a"
}
-unicode(11) "changed.ref"
\ No newline at end of file
+unicode(11) "changed.ref"
Arg value
bool(false)
-Done
\ No newline at end of file
+Done
Warning: Wrong parameter count for get_parent_class() in %s on line 15
NULL
-Done
\ No newline at end of file
+Done
echo "Done";
?>
---EXPECTF--
-*** Testing get_parent_class() : variation ***
-string(19) "caseSensitivityTest"
-string(19) "caseSensitivityTest"
-Done
---UEXPECTF--
+--EXPECT--
*** Testing get_parent_class() : variation ***
unicode(19) "caseSensitivityTest"
unicode(19) "caseSensitivityTest"
-Done
\ No newline at end of file
+Done
Arg value
bool(false)
-Done
\ No newline at end of file
+Done
Warning: Wrong parameter count for is_a() in %s on line 21
NULL
-Done
\ No newline at end of file
+Done
Deprecated: Function is_a() is deprecated in %s on line 69
bool(false)
-Done
\ No newline at end of file
+Done
Deprecated: Function is_a() is deprecated in %s on line 74
bool(false)
-Done
\ No newline at end of file
+Done
Deprecated: Function is_a() is deprecated in %s on line 13
bool(true)
-Done
\ No newline at end of file
+Done
Arg value
bool(false)
-Done
\ No newline at end of file
+Done
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(76)
-Arg value
-Error: 4096 - Object of class stdClass could not be converted to string, %s(77)
-Error: 8 - Object of class stdClass to string conversion, %s(77)
-bool(false)
-
-Arg value
-bool(false)
-
-Arg value
-bool(false)
-Done
---UEXPECTF--
-*** Testing is_subclass_of() : usage variations ***
-Error: 8 - Undefined variable: undefined_var, %s(67)
-Error: 8 - Undefined variable: unset_var, %s(70)
-
-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)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-bool(false)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-bool(false)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-bool(false)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-bool(false)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-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
-bool(false)
-
-Arg value
-bool(false)
-Error: 4096 - Object of class stdClass could not be converted to string, %s(76)
-
Arg value
Error: 4096 - Object of class stdClass could not be converted to Unicode string, %s(77)
Error: 8 - Object of class stdClass to string conversion, %s(77)
Arg value
bool(false)
-Done
\ No newline at end of file
+Done
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing is_subclass_of() : usage variations ***
*** Testing is_a() : usage variations ***
bool(true)
-Done
\ No newline at end of file
+Done
echo "Done";
?>
---EXPECTF--
+--EXPECT--
---(Using string class name)---
Does C::inherit_pub exist? bool(true)
Does C::static_prot exist? bool(true)
Does C::static_priv exist? bool(true)
Does C::non_existent exist? bool(false)
-Done
\ No newline at end of file
+Done
echo "Done";
?>
---EXPECTF--
+--EXPECT--
---(Internal classes, using string class name)---
Does exception::getmessage exist? bool(true)
Does stdclass::nonexistent exist? bool(false)
---(Internal classes, using class instance)---
Does exception::getmessage exist? bool(true)
Does stdclass::nonexistent exist? bool(false)
-Done
\ No newline at end of file
+Done
echo "Done";
?>
---EXPECTF--
+--EXPECT--
In __autoload(UndefC)
bool(false)
-Done
\ No newline at end of file
+Done
Arg value
bool(false)
-Done
\ No newline at end of file
+Done
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(76)
-Arg value
-Error: 4096 - Object of class stdClass could not be converted to string, %s(77)
-Error: 8 - Object of class stdClass to string conversion, %s(77)
-bool(false)
-
-Arg value
-bool(false)
-
-Arg value
-bool(false)
-Done
---UEXPECTF--
-*** Testing method_exists() : usage variations ***
-Error: 8 - Undefined variable: undefined_var, %s(67)
-Error: 8 - Undefined variable: unset_var, %s(70)
-
-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)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-bool(false)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-bool(false)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-bool(false)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-bool(false)
-Error: 8 - Array to string conversion, %s(76)
-
-Arg value Array
-Error: 8 - Array to string conversion, %s(77)
-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
-bool(false)
-
-Arg value
-bool(false)
-Error: 4096 - Object of class stdClass could not be converted to string, %s(76)
-
Arg value
Error: 4096 - Object of class stdClass could not be converted to Unicode string, %s(77)
Error: 8 - Object of class stdClass to string conversion, %s(77)
Arg value
bool(false)
-Done
\ No newline at end of file
+Done
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing method_exists() : variation ***
bool(true)
bool(true)
-Done
\ No newline at end of file
+Done