?>
===DONE===
--EXPECTF--
-array(1) {
- [0]=>
- object(SimpleXMLElement)#%d (1) {
- ["a"]=>
- string(3) "xyz"
- }
-}
-===DONE===
---UEXPECTF--
array(1) {
[0]=>
object(SimpleXMLElement)#3 (1) {
var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));
?>
--EXPECT--
-array(3) {
- [0]=>
- array(2) {
- ["id"]=>
- string(1) "1"
- ["val"]=>
- string(1) "A"
- }
- [1]=>
- array(2) {
- ["id"]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- }
- [2]=>
- array(2) {
- ["id"]=>
- string(1) "3"
- ["val"]=>
- string(1) "C"
- }
-}
---UEXPECT--
array(3) {
[0]=>
array(2) {
var_dump($stmt->fetchAll(PDO::FETCH_NUM));
?>
--EXPECT--
-array(3) {
- [0]=>
- array(2) {
- [0]=>
- string(1) "1"
- [1]=>
- string(1) "A"
- }
- [1]=>
- array(2) {
- [0]=>
- string(1) "2"
- [1]=>
- string(1) "B"
- }
- [2]=>
- array(2) {
- [0]=>
- string(1) "3"
- [1]=>
- string(1) "C"
- }
-}
---UEXPECT--
array(3) {
[0]=>
array(2) {
var_dump($stmt->fetchAll(PDO::FETCH_BOTH));
?>
--EXPECT--
-array(3) {
- [0]=>
- array(4) {
- ["id"]=>
- string(1) "1"
- [0]=>
- string(1) "1"
- ["val"]=>
- string(1) "A"
- [1]=>
- string(1) "A"
- }
- [1]=>
- array(4) {
- ["id"]=>
- string(1) "2"
- [0]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- [1]=>
- string(1) "B"
- }
- [2]=>
- array(4) {
- ["id"]=>
- string(1) "3"
- [0]=>
- string(1) "3"
- ["val"]=>
- string(1) "C"
- [1]=>
- string(1) "C"
- }
-}
---UEXPECT--
array(3) {
[0]=>
array(4) {
var_dump($stmt->fetchAll(PDO::FETCH_OBJ));
?>
--EXPECTF--
-array(3) {
- [0]=>
- object(stdClass)#%d (2) {
- ["id"]=>
- string(1) "1"
- ["val"]=>
- string(1) "A"
- }
- [1]=>
- object(stdClass)#%d (2) {
- ["id"]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- }
- [2]=>
- object(stdClass)#%d (2) {
- ["id"]=>
- string(1) "3"
- ["val"]=>
- string(1) "C"
- }
-}
---UEXPECTF--
array(3) {
[0]=>
object(stdClass)#%d (2) {
?>
--EXPECTF--
-array(3) {
- [0]=>
- object(stdClass)#%d (3) {
- ["id"]=>
- string(1) "1"
- ["val"]=>
- string(1) "A"
- ["val2"]=>
- string(2) "AA"
- }
- [1]=>
- object(stdClass)#%d (3) {
- ["id"]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- ["val2"]=>
- string(2) "BB"
- }
- [2]=>
- object(stdClass)#%d (3) {
- ["id"]=>
- string(1) "3"
- ["val"]=>
- string(1) "C"
- ["val2"]=>
- string(2) "CC"
- }
-}
-array(3) {
- [0]=>
- object(TestBase)#%d (3) {
- ["id"]=>
- string(1) "1"
- ["val":protected]=>
- string(1) "A"
- ["val2":"TestBase":private]=>
- string(2) "AA"
- }
- [1]=>
- object(TestBase)#%d (3) {
- ["id"]=>
- string(1) "2"
- ["val":protected]=>
- string(1) "B"
- ["val2":"TestBase":private]=>
- string(2) "BB"
- }
- [2]=>
- object(TestBase)#%d (3) {
- ["id"]=>
- string(1) "3"
- ["val":protected]=>
- string(1) "C"
- ["val2":"TestBase":private]=>
- string(2) "CC"
- }
-}
-TestDerived::__construct(0,1)
-TestDerived::__construct(1,2)
-TestDerived::__construct(2,3)
-array(3) {
- [0]=>
- object(TestDerived)#%d (5) {
- ["row":protected]=>
- int(0)
- ["id"]=>
- string(1) "1"
- ["val":protected]=>
- string(1) "A"
- ["val2":"TestBase":private]=>
- NULL
- ["val2"]=>
- string(2) "AA"
- }
- [1]=>
- object(TestDerived)#%d (5) {
- ["row":protected]=>
- int(1)
- ["id"]=>
- string(1) "2"
- ["val":protected]=>
- string(1) "B"
- ["val2":"TestBase":private]=>
- NULL
- ["val2"]=>
- string(2) "BB"
- }
- [2]=>
- object(TestDerived)#%d (5) {
- ["row":protected]=>
- int(2)
- ["id"]=>
- string(1) "3"
- ["val":protected]=>
- string(1) "C"
- ["val2":"TestBase":private]=>
- NULL
- ["val2"]=>
- string(2) "CC"
- }
-}
---UEXPECTF--
array(3) {
[0]=>
object(stdClass)#%d (3) {
?>
--EXPECT--
-array(2) {
- ["A"]=>
- array(2) {
- [0]=>
- array(1) {
- [0]=>
- string(1) "1"
- }
- [1]=>
- array(1) {
- [0]=>
- string(1) "2"
- }
- }
- ["C"]=>
- array(1) {
- [0]=>
- array(1) {
- [0]=>
- string(1) "3"
- }
- }
-}
-array(2) {
- ["A"]=>
- array(2) {
- [0]=>
- array(1) {
- ["id"]=>
- string(1) "1"
- }
- [1]=>
- array(1) {
- ["id"]=>
- string(1) "2"
- }
- }
- ["C"]=>
- array(1) {
- [0]=>
- array(1) {
- ["id"]=>
- string(1) "3"
- }
- }
-}
---UEXPECT--
array(2) {
[u"A"]=>
array(2) {
?>
--EXPECT--
-array(3) {
- ["A"]=>
- array(1) {
- [0]=>
- string(1) "A"
- }
- ["B"]=>
- array(1) {
- [0]=>
- string(1) "A"
- }
- ["C"]=>
- array(1) {
- [0]=>
- string(1) "C"
- }
-}
-array(3) {
- ["A"]=>
- array(1) {
- ["val"]=>
- string(1) "A"
- }
- ["B"]=>
- array(1) {
- ["val"]=>
- string(1) "A"
- }
- ["C"]=>
- array(1) {
- ["val"]=>
- string(1) "C"
- }
-}
---UEXPECT--
array(3) {
[u"A"]=>
array(1) {
?>
--EXPECT--
-array(2) {
- ["A"]=>
- array(1) {
- [0]=>
- string(1) "B"
- }
- ["C"]=>
- array(1) {
- [0]=>
- string(1) "C"
- }
-}
---UEXPECT--
array(2) {
[u"A"]=>
array(1) {
?>
--EXPECTF--
-array(4) {
- [0]=>
- array(3) {
- [0]=>
- string(8) "stdClass"
- [1]=>
- string(1) "1"
- [2]=>
- string(1) "A"
- }
- [1]=>
- array(3) {
- [0]=>
- string(5) "Test1"
- [1]=>
- string(1) "2"
- [2]=>
- string(1) "B"
- }
- [2]=>
- array(3) {
- [0]=>
- string(5) "Test2"
- [1]=>
- string(1) "3"
- [2]=>
- string(1) "C"
- }
- [3]=>
- array(3) {
- [0]=>
- NULL
- [1]=>
- string(1) "4"
- [2]=>
- string(1) "D"
- }
-}
-Test1::__construct()
-Test2::__construct()
-Test3::__construct()
-array(4) {
- [0]=>
- object(stdClass)#%d (2) {
- ["id"]=>
- string(1) "1"
- ["val"]=>
- string(1) "A"
- }
- [1]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- }
- [2]=>
- object(Test2)#%d (2) {
- ["id"]=>
- string(1) "3"
- ["val"]=>
- string(1) "C"
- }
- [3]=>
- object(Test3)#%d (2) {
- ["id"]=>
- string(1) "4"
- ["val"]=>
- string(1) "D"
- }
-}
---UEXPECTF--
array(4) {
[0]=>
array(3) {
Test1::__construct()
Test2::__construct()
Test3::__construct()
-array(2) {
- ["Group1"]=>
- array(2) {
- [0]=>
- object(stdClass)#%d (2) {
- ["id"]=>
- string(1) "1"
- ["val"]=>
- string(1) "A"
- }
- [1]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- }
- }
- ["Group2"]=>
- array(2) {
- [0]=>
- object(Test2)#%d (2) {
- ["id"]=>
- string(1) "3"
- ["val"]=>
- string(1) "C"
- }
- [1]=>
- object(Test3)#%d (2) {
- ["id"]=>
- string(1) "4"
- ["val"]=>
- string(1) "D"
- }
- }
-}
-Test1::__construct()
-Test2::__construct()
-Test3::__construct()
-array(2) {
- ["Group1"]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- }
- ["Group2"]=>
- object(Test3)#%d (2) {
- ["id"]=>
- string(1) "4"
- ["val"]=>
- string(1) "D"
- }
-}
---UEXPECTF--
-Test1::__construct()
-Test2::__construct()
-Test3::__construct()
array(2) {
[u"Group1"]=>
array(2) {
test(2,N/A)
test(3,N/A)
test(4,N/A)
-array(2) {
- ["Group1"]=>
- array(2) {
- [0]=>
- array(1) {
- [1]=>
- string(3) "N/A"
- }
- [1]=>
- array(1) {
- [2]=>
- string(3) "N/A"
- }
- }
- ["Group2"]=>
- array(2) {
- [0]=>
- array(1) {
- [3]=>
- string(3) "N/A"
- }
- [1]=>
- array(1) {
- [4]=>
- string(3) "N/A"
- }
- }
-}
-test(1,A)
-test(2,B)
-test(3,C)
-test(4,D)
-array(4) {
- [0]=>
- array(1) {
- [1]=>
- string(1) "A"
- }
- [1]=>
- array(1) {
- [2]=>
- string(1) "B"
- }
- [2]=>
- array(1) {
- [3]=>
- string(1) "C"
- }
- [3]=>
- array(1) {
- [4]=>
- string(1) "D"
- }
-}
-Test1::factory(1,A)
-Test1::__construct(1,A)
-Test1::factory(2,B)
-Test1::__construct(2,B)
-Test1::factory(3,C)
-Test1::__construct(3,C)
-Test1::factory(4,D)
-Test1::__construct(4,D)
-array(4) {
- [0]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "1"
- ["val"]=>
- string(1) "A"
- }
- [1]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- }
- [2]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "3"
- ["val"]=>
- string(1) "C"
- }
- [3]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "4"
- ["val"]=>
- string(1) "D"
- }
-}
-Test1::factory(1,A)
-Test1::__construct(1,A)
-Test1::factory(2,B)
-Test1::__construct(2,B)
-Test1::factory(3,C)
-Test1::__construct(3,C)
-Test1::factory(4,D)
-Test1::__construct(4,D)
-array(4) {
- [0]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "1"
- ["val"]=>
- string(1) "A"
- }
- [1]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- }
- [2]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "3"
- ["val"]=>
- string(1) "C"
- }
- [3]=>
- object(Test1)#%d (2) {
- ["id"]=>
- string(1) "4"
- ["val"]=>
- string(1) "D"
- }
-}
-string(16) "DerivedStatement"
-DerivedStatement::reTrieve(1,A)
-DerivedStatement::reTrieve(2,B)
-DerivedStatement::reTrieve(3,C)
-DerivedStatement::reTrieve(4,D)
-array(4) {
- [0]=>
- array(1) {
- [1]=>
- string(1) "A"
- }
- [1]=>
- array(1) {
- [2]=>
- string(1) "B"
- }
- [2]=>
- array(1) {
- [3]=>
- string(1) "C"
- }
- [3]=>
- array(1) {
- [4]=>
- string(1) "D"
- }
-}
-DerivedStatement::reTrieve(1,A)
-DerivedStatement::reTrieve(2,B)
-DerivedStatement::reTrieve(3,C)
-DerivedStatement::reTrieve(4,D)
-array(4) {
- [0]=>
- array(1) {
- [1]=>
- string(1) "A"
- }
- [1]=>
- array(1) {
- [2]=>
- string(1) "B"
- }
- [2]=>
- array(1) {
- [3]=>
- string(1) "C"
- }
- [3]=>
- array(1) {
- [4]=>
- string(1) "D"
- }
-}
-DerivedStatement::reTrieve(1,A)
-DerivedStatement::reTrieve(2,B)
-DerivedStatement::reTrieve(3,C)
-DerivedStatement::reTrieve(4,D)
-array(4) {
- [0]=>
- array(1) {
- [1]=>
- string(1) "A"
- }
- [1]=>
- array(1) {
- [2]=>
- string(1) "B"
- }
- [2]=>
- array(1) {
- [3]=>
- string(1) "C"
- }
- [3]=>
- array(1) {
- [4]=>
- string(1) "D"
- }
-}
---UEXPECTF--
-DerivedStatement::__construct(Overloaded)
-Test1::__construct(0,0)
-test(1,N/A)
-test(2,N/A)
-test(3,N/A)
-test(4,N/A)
array(2) {
[u"Group1"]=>
array(2) {
?>
--EXPECTF--
-array(2) {
- [0]=>
- array(2) {
- [0]=>
- string(1) "A"
- [1]=>
- string(6) "Group1"
- }
- [1]=>
- array(2) {
- [0]=>
- string(1) "B"
- [1]=>
- string(6) "Group2"
- }
-}
-Test::__construct(N/A)
-Test::__construct(N/A)
-array(2) {
- [0]=>
- object(Test)#%d (2) {
- ["val"]=>
- string(1) "A"
- ["grp"]=>
- string(6) "Group1"
- }
- [1]=>
- object(Test)#%d (2) {
- ["val"]=>
- string(1) "B"
- ["grp"]=>
- string(6) "Group2"
- }
-}
-Test::__construct(Changed)
-Test::__construct(Changed)
-array(2) {
- [0]=>
- object(Test)#%d (2) {
- ["val"]=>
- string(1) "A"
- ["grp"]=>
- string(6) "Group1"
- }
- [1]=>
- object(Test)#%d (2) {
- ["val"]=>
- string(1) "B"
- ["grp"]=>
- string(6) "Group2"
- }
-}
---UEXPECTF--
array(2) {
[0]=>
array(2) {
}
?>
--EXPECTF--
-array(2) {
- [0]=>
- string(1) "A"
- [1]=>
- string(6) "Group1"
-}
-array(2) {
- [0]=>
- string(1) "B"
- [1]=>
- string(6) "Group2"
-}
-Test::__construct(N/A)
-object(Test)#%d (2) {
- ["val"]=>
- string(1) "A"
- ["grp"]=>
- string(6) "Group1"
-}
-Test::__construct(N/A)
-object(Test)#%d (2) {
- ["val"]=>
- string(1) "B"
- ["grp"]=>
- string(6) "Group2"
-}
-Test::__construct(WOW)
-object(Test)#%d (2) {
- ["val"]=>
- string(1) "A"
- ["grp"]=>
- string(6) "Group1"
-}
-Test::__construct(WOW)
-object(Test)#%d (2) {
- ["val"]=>
- string(1) "B"
- ["grp"]=>
- string(6) "Group2"
-}
---UEXPECTF--
array(2) {
[0]=>
unicode(1) "A"
?>
--EXPECTF--
Test::__construct(WOW)
-object(Test)#4 (2) {
- ["val"]=>
- string(1) "A"
- ["grp"]=>
- string(6) "Group1"
-}
-Test::__construct(WOW)
-object(Test)#6 (2) {
- ["val"]=>
- string(1) "B"
- ["grp"]=>
- string(6) "Group2"
-}
-NULL
-bool(false)
-PDOStatementAggregate::__construct
-PDOStatementAggregate::getIterator
-array(2) {
- [0]=>
- string(1) "A"
- [1]=>
- string(6) "Group1"
-}
-array(2) {
- [0]=>
- string(1) "B"
- [1]=>
- string(6) "Group2"
-}
---UEXPECTF--
-Test::__construct(WOW)
object(Test)#4 (2) {
[u"val"]=>
unicode(1) "A"
?>
--EXPECT--
-array(2) {
- [0]=>
- string(1) "1"
- [1]=>
- string(1) "2"
-}
-array(2) {
- [0]=>
- string(2) "A2"
- [1]=>
- string(2) "B2"
-}
-array(2) {
- [1]=>
- array(1) {
- [0]=>
- string(1) "A"
- }
- [2]=>
- array(1) {
- [0]=>
- string(1) "A"
- }
-}
-array(2) {
- [1]=>
- string(1) "A"
- [2]=>
- string(1) "A"
-}
-array(2) {
- [1]=>
- string(1) "1"
- [2]=>
- string(1) "2"
-}
-array(2) {
- [1]=>
- string(1) "A"
- [2]=>
- string(1) "A"
-}
-array(2) {
- [1]=>
- string(2) "A2"
- [2]=>
- string(2) "B2"
-}
-array(1) {
- ["A"]=>
- array(2) {
- [0]=>
- string(2) "A2"
- [1]=>
- string(2) "B2"
- }
-}
---UEXPECT--
array(2) {
[0]=>
unicode(1) "1"
?>
--EXPECT--
-string(1) "3"
-array(3) {
- [0]=>
- string(7) "String0"
- [1]=>
- string(7) "String1"
- [2]=>
- string(7) "String2"
-}
-===WHILE===
-array(1) {
- [0]=>
- string(7) "String0"
-}
-array(1) {
- [1]=>
- string(7) "String1"
-}
-array(1) {
- [2]=>
- string(7) "String2"
-}
-===ALONE===
-array(1) {
- [0]=>
- string(7) "String0"
-}
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-array(1) {
- [0]=>
- string(7) "String0"
-}
-array(1) {
- [1]=>
- string(7) "String1"
-}
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-array(1) {
- [1]=>
- string(7) "String1"
-}
-array(1) {
- [2]=>
- string(7) "String2"
-}
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-array(1) {
- [2]=>
- string(7) "String2"
-}
-===REBIND/SAME===
-array(1) {
- [0]=>
- string(7) "String0"
-}
-bool(true)
-bool(true)
-string(7) "String0"
-bool(true)
-bool(true)
-string(1) "0"
-array(1) {
- [1]=>
- string(7) "String1"
-}
-bool(true)
-bool(true)
-string(7) "String1"
-bool(true)
-bool(true)
-string(1) "1"
-array(1) {
- [2]=>
- string(7) "String2"
-}
-bool(true)
-bool(true)
-string(7) "String2"
-bool(true)
-bool(true)
-string(1) "2"
-===REBIND/CONFLICT===
-string(7) "String0"
-string(7) "String1"
-string(7) "String2"
---UEXPECT--
unicode(1) "3"
array(3) {
[0]=>
?>
--EXPECT--
-string(1) "3"
-array(3) {
- [0]=>
- string(7) "String0"
- [1]=>
- string(7) "String1"
- [2]=>
- string(7) "String2"
-}
-===WHILE===
-array(1) {
- [0]=>
- string(7) "String0"
-}
-array(1) {
- [1]=>
- string(7) "String1"
-}
-array(1) {
- [2]=>
- string(7) "String2"
-}
-===ALONE===
-array(1) {
- [0]=>
- string(7) "String0"
-}
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-array(1) {
- [0]=>
- string(7) "String0"
-}
-array(1) {
- [1]=>
- string(7) "String1"
-}
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-array(1) {
- [1]=>
- string(7) "String1"
-}
-array(1) {
- [2]=>
- string(7) "String2"
-}
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-array(1) {
- [2]=>
- string(7) "String2"
-}
-===REBIND/SAME===
-array(1) {
- [0]=>
- string(7) "String0"
-}
-bool(true)
-bool(true)
-string(7) "String0"
-bool(true)
-bool(true)
-string(1) "0"
-array(1) {
- [1]=>
- string(7) "String1"
-}
-bool(true)
-bool(true)
-string(7) "String1"
-bool(true)
-bool(true)
-string(1) "1"
-array(1) {
- [2]=>
- string(7) "String2"
-}
-bool(true)
-bool(true)
-string(7) "String2"
-bool(true)
-bool(true)
-string(1) "2"
-===REBIND/CONFLICT===
-string(7) "String0"
-string(7) "String1"
-string(7) "String2"
---UEXPECT--
unicode(1) "3"
array(3) {
[0]=>
?>
--EXPECTF--
-string(1) "3"
-array(3) {
- [0]=>
- string(8) "stdClass"
- [1]=>
- string(8) "TestBase"
- [2]=>
- string(11) "TestDerived"
-}
-===TYPES===
-array(4) {
- ["stdClass"]=>
- string(1) "0"
- ["TestBase"]=>
- string(1) "1"
- ["TestDerived"]=>
- string(1) "2"
- ["TestLeaf"]=>
- NULL
-}
-===INSERT===
-TestBase::serialize() = 'a:3:{s:7:"BasePub";s:6:"Public";s:7:"BasePro";s:9:"Protected";s:7:"BasePri";s:7:"Private";}'
-TestDerived::serialize()
-TestBase::serialize() = 'a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}'
-TestDerived::serialize()
-TestBase::serialize() = 'a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}'
-===DATA===
-array(4) {
- [0]=>
- string(0) ""
- [1]=>
- string(91) "a:3:{s:7:"BasePub";s:6:"Public";s:7:"BasePro";s:9:"Protected";s:7:"BasePri";s:7:"Private";}"
- [2]=>
- string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}"
- [3]=>
- string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}"
-}
-===FAILURE===
-Exception:SQLSTATE[HY000]: General error: cannot unserialize class
-===COUNT===
-string(1) "3"
-===DATABASE===
-array(3) {
- [0]=>
- array(2) {
- ["name"]=>
- string(8) "TestBase"
- ["val"]=>
- string(91) "a:3:{s:7:"BasePub";s:6:"Public";s:7:"BasePro";s:9:"Protected";s:7:"BasePri";s:7:"Private";}"
- }
- [1]=>
- array(2) {
- ["name"]=>
- string(11) "TestDerived"
- ["val"]=>
- string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}"
- }
- [2]=>
- array(2) {
- ["name"]=>
- NULL
- ["val"]=>
- string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}"
- }
-}
-===FETCHCLASS===
-TestBase::unserialize(a:3:{s:7:"BasePub";s:6:"Public";s:7:"BasePro";s:9:"Protected";s:7:"BasePri";s:7:"Private";})
-TestDerived::unserialize()
-TestBase::unserialize(a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";})
-TestDerived::unserialize()
-TestBase::unserialize(a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";})
-array(3) {
- [0]=>
- object(TestBase)#%d (3) {
- ["BasePub"]=>
- string(7) "#Public"
- ["BasePro":protected]=>
- string(10) "#Protected"
- ["BasePri":"TestBase":private]=>
- string(8) "#Private"
- }
- [1]=>
- object(TestDerived)#%d (6) {
- ["BasePub"]=>
- string(14) "#DerivedPublic"
- ["BasePro":protected]=>
- string(17) "#DerivdeProtected"
- ["DerivedPub"]=>
- string(7) "#Public"
- ["DerivedPro":protected]=>
- string(10) "#Protected"
- ["DerivedPri":"TestDerived":private]=>
- string(7) "Private"
- ["BasePri":"TestBase":private]=>
- string(7) "Private"
- }
- [2]=>
- object(TestLeaf)#%d (6) {
- ["BasePub"]=>
- string(14) "#DerivedPublic"
- ["BasePro":protected]=>
- string(17) "#DerivdeProtected"
- ["DerivedPub"]=>
- string(7) "#Public"
- ["DerivedPro":protected]=>
- string(10) "#Protected"
- ["DerivedPri":"TestDerived":private]=>
- string(7) "Private"
- ["BasePri":"TestBase":private]=>
- string(7) "Private"
- }
-}
---UEXPECTF--
unicode(1) "3"
array(3) {
[0]=>
?>
--EXPECT--
-string(1) "4"
-array(4) {
- [0]=>
- string(7) "String0"
- [1]=>
- string(7) "String1"
- [2]=>
- string(7) "String2"
- [3]=>
- string(7) "String3"
-}
-===WHILE===
-array(1) {
- [0]=>
- string(7) "String0"
-}
-array(1) {
- [1]=>
- string(7) "String1"
-}
-array(1) {
- [2]=>
- string(7) "String2"
-}
-array(1) {
- [3]=>
- string(7) "String3"
-}
---UEXPECT--
unicode(1) "4"
array(4) {
[0]=>
--EXPECTF--
int(1)
int(2)
-object(PDODatabaseX)#%d (2) {
- ["test1"]=>
- int(1)
- ["test2"]=>
- int(22)
-}
-PDODatabaseX::query()
-PDOStatementX::__construct()
-PDOStatementX::__destruct()
-PDODatabaseX::query()
-PDOStatementX::__construct()
-PDOStatementX::__destruct()
-PDODatabaseX::query()
-PDOStatementX::__construct()
-PDOStatementX::__destruct()
-PDODatabaseX::query()
-PDOStatementX::__construct()
-object(PDOStatementX)#%d (3) {
- ["test1"]=>
- int(1)
- ["queryString"]=>
- string(24) "SELECT val, id FROM test"
- ["test2"]=>
- int(22)
-}
-array(2) {
- ["A"]=>
- string(1) "0"
- ["B"]=>
- string(1) "1"
-}
-PDOStatementX::__destruct()
-PDODatabaseX::__destruct()
---UEXPECTF--
-int(1)
-int(2)
object(PDODatabaseX)#%d (2) {
[u"test1"]=>
int(1)
?>
--EXPECTF--
-object(Test)#%d (3) {
- ["id"]=>
- string(2) "10"
- ["val"]=>
- string(3) "Abc"
- ["val2"]=>
- string(3) "zxy"
-}
-object(Test)#%d (3) {
- ["id"]=>
- string(2) "20"
- ["val"]=>
- string(3) "Def"
- ["val2"]=>
- string(3) "wvu"
-}
-object(Test)#%d (3) {
- ["id"]=>
- string(2) "30"
- ["val"]=>
- string(3) "Ghi"
- ["val2"]=>
- string(3) "tsr"
-}
-object(Test)#%d (3) {
- ["id"]=>
- string(2) "40"
- ["val"]=>
- string(3) "Jkl"
- ["val2"]=>
- string(3) "qpo"
-}
-object(Test)#%d (3) {
- ["id"]=>
- string(2) "50"
- ["val"]=>
- string(3) "Mno"
- ["val2"]=>
- string(3) "nml"
-}
-object(Test)#%d (3) {
- ["id"]=>
- string(2) "60"
- ["val"]=>
- string(3) "Pqr"
- ["val2"]=>
- string(3) "kji"
-}
-===FAIL===
-
-Fatal error: Cannot access protected property Fail::$id in %spdo_025.php on line %d
---UEXPECTF--
object(Test)#%d (3) {
[u"id"]=>
unicode(2) "10"
echo "===DONE===\n";
?>
--EXPECT--
-string(11) "PDODatabase"
-string(12) "PDOStatement"
-PDODatabase::query()
-PDOStatementX::__construct()
-string(13) "PDOStatementX"
-string(11) "PDODatabase"
-array(3) {
- ["id"]=>
- string(2) "10"
- ["val"]=>
- string(3) "Abc"
- ["val2"]=>
- string(3) "zxy"
-}
-array(3) {
- ["id"]=>
- string(2) "20"
- ["val"]=>
- string(3) "Def"
- ["val2"]=>
- string(3) "wvu"
-}
-array(3) {
- ["id"]=>
- string(2) "30"
- ["val"]=>
- string(3) "Ghi"
- ["val2"]=>
- string(3) "tsr"
-}
-===DONE===
-PDOStatementX::__destruct()
-PDODatabase::__destruct()
---UEXPECT--
unicode(11) "PDODatabase"
unicode(12) "PDOStatement"
PDODatabase::query()
var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));
?>
--EXPECT--
-array(1) {
- [0]=>
- array(4) {
- ["id"]=>
- string(1) "1"
- ["val1"]=>
- string(3) "one"
- ["val2"]=>
- string(3) "two"
- ["val3"]=>
- string(5) "three"
- }
-}
---UEXPECT--
array(1) {
[0]=>
array(4) {
exit(0);
?>
--EXPECT--
-string(11) "PDODatabase"
-string(12) "PDOStatement"
-===QUERY===
-PDODatabase::query()
-PDOStatementX::__construct()
-PDOStatementX::execute()
-string(13) "PDOStatementX"
-string(11) "PDODatabase"
-===FOREACH===
-array(3) {
- ["id"]=>
- string(2) "10"
- ["val"]=>
- string(3) "Abc"
- ["val2"]=>
- string(3) "zxy"
-}
-array(3) {
- ["id"]=>
- string(2) "20"
- ["val"]=>
- string(3) "Def"
- ["val2"]=>
- string(3) "wvu"
-}
-array(3) {
- ["id"]=>
- string(2) "30"
- ["val"]=>
- string(3) "Ghi"
- ["val2"]=>
- string(3) "tsr"
-}
-===DONE===
-PDOStatementX::__destruct()
-PDODatabase::__destruct()
---UEXPECT--
unicode(11) "PDODatabase"
unicode(12) "PDOStatement"
===QUERY===
exit(0);
?>
--EXPECTF--
-string(11) "PDODatabase"
-string(12) "PDOStatement"
-===QUERY===
-array(1) {
- [0]=>
- string(12) "PDOStatement"
-}
-array(2) {
- [0]=>
- string(13) "PDOStatementX"
- [1]=>
- array(1) {
- [0]=>
- object(PDODatabase)#%d (0) {
- }
- }
-}
-PDODatabase::query()
-PDOStatementX::__construct()
-string(13) "PDOStatementX"
-string(11) "PDODatabase"
-===FOREACH===
-array(3) {
- ["id"]=>
- string(2) "10"
- ["val"]=>
- string(3) "Abc"
- ["val2"]=>
- string(3) "zxy"
-}
-array(3) {
- ["id"]=>
- string(2) "20"
- ["val"]=>
- string(3) "Def"
- ["val2"]=>
- string(3) "wvu"
-}
-array(3) {
- ["id"]=>
- string(2) "30"
- ["val"]=>
- string(3) "Ghi"
- ["val2"]=>
- string(3) "tsr"
-}
-===DONE===
-PDOStatementX::__destruct()
-PDODatabase::__destruct()
---UEXPECTF--
unicode(11) "PDODatabase"
unicode(12) "PDOStatement"
===QUERY===
?>
--EXPECT--
-array(3) {
- [0]=>
- array(2) {
- ["id"]=>
- string(1) "1"
- ["val"]=>
- string(1) "A"
- }
- [1]=>
- array(2) {
- ["id"]=>
- string(1) "2"
- ["val"]=>
- string(1) "B"
- }
- [2]=>
- array(2) {
- ["id"]=>
- string(1) "3"
- ["val"]=>
- string(1) "C"
- }
-}
-array(3) {
- [0]=>
- array(2) {
- ["ID"]=>
- string(1) "1"
- ["VAL"]=>
- string(1) "A"
- }
- [1]=>
- array(2) {
- ["ID"]=>
- string(1) "2"
- ["VAL"]=>
- string(1) "B"
- }
- [2]=>
- array(2) {
- ["ID"]=>
- string(1) "3"
- ["VAL"]=>
- string(1) "C"
- }
-}
---UEXPECT--
array(3) {
[0]=>
array(2) {
print_r($stmt->getColumnMeta(0));
?>
--EXPECTF--
-object(PDOStatement)#%d (1) {
- ["queryString"]=>
- string(18) "SELECT * from test"
-}
-Array
-(
- [bar] => 1
- [0] => 1
-)
-Array
-(
- [native_type] => LONG
- [flags] => Array
- (
- [0] => not_null
- )
-
- [table] => test
- [name] => bar
- [len] => 11
- [precision] => 0
- [pdo_type] => 2
-)
---UEXPECTF--
object(PDOStatement)#%d (1) {
[u"queryString"]=>
unicode(18) "SELECT * from test"
--EXPECT--
Test 1 - Force column names to lower case
int(2)
-array(1) {
- ["dummy"]=>
- string(1) "X"
-}
-Test 2 - Leave column names as returned by the database driver
-int(0)
-array(1) {
- ["DUMMY"]=>
- string(1) "X"
-}
-Test 3 - Force column names to upper case
-int(1)
-array(1) {
- ["DUMMY"]=>
- string(1) "X"
-}
-Test 4 - Setting on statement has no effect. Attempt lower case but get upper
-Mode desired is 2
-array(1) {
- ["DUMMY"]=>
- string(1) "X"
-}
-Done
---UEXPECT--
-Test 1 - Force column names to lower case
-int(2)
array(1) {
[u"dummy"]=>
unicode(1) "X"
?>
--EXPECTF--
-ATTR_CLIENT_VERSION: string(%d) "%d.%s"
-Version OK, so far as can be portably checked
-Done
---UEXPECTF--
ATTR_CLIENT_VERSION: unicode(%d) "%d.%s"
Version OK, so far as can be portably checked
Done
echo "Done\n";
?>
--EXPECT--
-string(3) "oci"
-Done
---UEXPECT--
unicode(3) "oci"
Done
NULL
NULL
PDO::ATTR_ORACLE_NULLS: PDO::NULL_TO_STRING: int(2)
-string(0) ""
-string(0) ""
-Done
---UEXPECT--
-PDO::ATTR_ORACLE_NULLS: Default: int(0)
-NULL
-NULL
-PDO::ATTR_ORACLE_NULLS: PDO::NULL_NATURAL: int(0)
-NULL
-NULL
-PDO::ATTR_ORACLE_NULLS: PDO::NULL_EMPTY_STRING: int(1)
-NULL
-NULL
-PDO::ATTR_ORACLE_NULLS: PDO::NULL_TO_STRING: int(2)
unicode(0) ""
unicode(0) ""
Done
?>
--EXPECTF--
Test 1
-ATTR_SERVER_VERSION: string(%d) "%d.%d.%d.%d.%d"
-Test 2
-ATTR_SERVER_INFO
-Found 'Oracle' at position 0 as expected
-Done
---UEXPECTF--
-Test 1
ATTR_SERVER_VERSION: unicode(%d) "%d.%d.%d.%d.%d"
Test 2
ATTR_SERVER_INFO
?>
--EXPECTF--
Unquoted : NULL
-Quoted : string(2) "''"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- NULL
- }
-}
-Unquoted : string(0) ""
-Quoted : string(2) "''"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- NULL
- }
-}
-Unquoted : string(1) "a"
-Quoted : string(3) "'a'"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(1) "a"
- }
-}
-Unquoted : string(2) "ab"
-Quoted : string(4) "'ab'"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(2) "ab"
- }
-}
-Unquoted : string(3) "abc"
-Quoted : string(5) "'abc'"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(3) "abc"
- }
-}
-Unquoted : string(5) "ab'cd"
-Quoted : string(8) "'ab''cd'"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(5) "ab'cd"
- }
-}
-Unquoted : string(4) "a\b
-"
-Quoted : string(6) "'a\b
-'"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(4) "a\b
-"
- }
-}
-Unquoted : string(1) "'"
-Quoted : string(4) "''''"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(1) "'"
- }
-}
-Unquoted : string(2) "''"
-Quoted : string(6) "''''''"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(2) "''"
- }
-}
-Unquoted : string(2) "a'"
-Quoted : string(5) "'a'''"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(2) "a'"
- }
-}
-Unquoted : string(2) "'z"
-Quoted : string(5) "'''z'"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(2) "'z"
- }
-}
-Unquoted : string(4) "a''b"
-Quoted : string(8) "'a''''b'"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(4) "a''b"
- }
-}
-Unquoted : string(1) """
-Quoted : string(3) "'"'"
-array(1) {
- [0]=>
- array(1) {
- ["t"]=>
- string(1) """
- }
-}
-Done
---UEXPECTF--
-Unquoted : NULL
Quoted : unicode(2) "''"
array(1) {
[0]=>
?>
--EXPECTF--
-string(4) "val4"
-string(4) "val5"
-array(10) {
- ["c1"]=>
- string(2) "p1"
- [0]=>
- string(2) "p1"
- ["c2"]=>
- string(2) "p2"
- [1]=>
- string(2) "p2"
- ["c3"]=>
- string(2) "p3"
- [2]=>
- string(2) "p3"
- ["c4"]=>
- NULL
- [3]=>
- NULL
- ["c5"]=>
- NULL
- [4]=>
- NULL
-}
-Done
---UEXPECTF--
unicode(4) "val4"
unicode(4) "val5"
array(10) {
string(5) "extra"
extra
===DONE===
---UEXPECTF--
-===CLOSE===
-object(PharFileInfo)#%d (2) {
- [u"pathName":u"SplFileInfo":private]=>
- string(%d) "phar://%srefcount1.phar.zip/b"
- [u"fileName":u"SplFileInfo":private]=>
- string(%d) "phar://%srefcount1.phar.zip/b/c.php"
-}
-string(5) "extra"
-===UNLINK===
-
-Warning: unlink(): phar error: "b/c.php" in phar "%srefcount1.phar.zip", has open file pointers, cannot unlink in %srefcount1.php on line %d
-object(PharFileInfo)#%d (2) {
- [u"pathName":u"SplFileInfo":private]=>
- string(%d) "phar://%srefcount1.phar.zip/b"
- [u"fileName":u"SplFileInfo":private]=>
- string(%s) "phar://%srefcount1.phar.zip/b/c.php"
-}
-string(5) "extra"
-extra
-===DONE===
--EXPECT--
array(0) {
}
-array(2) {
- [0]=>
- string(3) "bla"
- [1]=>
- string(4) "name"
-}
-string(17) "ReflectionClassEx"
-===DONE===
---UEXPECT--
-array(0) {
-}
array(2) {
[0]=>
unicode(3) "bla"
===DONE===
--EXPECTF--
ReflectionMethodEx::__construct
-string(18) "ReflectionMethodEx"
-string(7) "getName"
-string(3) "xyz"
-NULL
-Cannot set read-only property ReflectionMethodEx::$class
-Cannot set read-only property ReflectionMethodEx::$name
-string(18) "ReflectionMethodEx"
-string(7) "getName"
-string(3) "bar"
-string(3) "baz"
-===DONE===
---UEXPECTF--
-ReflectionMethodEx::__construct
unicode(18) "ReflectionMethodEx"
unicode(7) "getName"
unicode(3) "xyz"
?>
===DONE===
--EXPECT--
-string(19) "Comment for class A"
-string(15) "Method A::bla()"
-bool(false)
-bool(false)
-string(22) "* Comment for A::baz()"
-===DONE===
---UEXPECT--
unicode(19) "Comment for class A"
unicode(15) "Method A::bla()"
bool(false)
===DONE===
<?php exit(0); ?>
--EXPECT--
-string(3) "pub"
-string(3) "pub"
-string(7) "updated"
-EXCEPTION
-EXCEPTION
-string(7) "updated"
-string(7) "updated"
-string(7) "updated"
-EXCEPTION
-EXCEPTION
-string(7) "updated"
-string(7) "updated"
-string(7) "updated"
-EXCEPTION
-EXCEPTION
-===DONE===
---UEXPECT--
unicode(3) "pub"
unicode(3) "pub"
unicode(7) "updated"
<?php exit(0); ?>
--EXPECTF--
-====>Class_does_not_exist
-__autoload(Class_does_not_exist)
-string(41) "Class Class_does_not_exist does not exist"
-====>NoCtor
-====>newInstance()
-object(NoCtor)#%d (0) {
-}
-====>newInstance(25)
-string(86) "Class NoCtor does not have a constructor, so you cannot pass any constructor arguments"
-====>newInstance(25, 42)
-string(86) "Class NoCtor does not have a constructor, so you cannot pass any constructor arguments"
-
-====>WithCtor
-====>newInstance()
-WithCtor::__construct()
-array(0) {
-}
-object(WithCtor)#%d (0) {
-}
-====>newInstance(25)
-WithCtor::__construct()
-array(1) {
- [0]=>
- int(25)
-}
-object(WithCtor)#%d (0) {
-}
-====>newInstance(25, 42)
-WithCtor::__construct()
-array(2) {
- [0]=>
- int(25)
- [1]=>
- int(42)
-}
-object(WithCtor)#%d (0) {
-}
-
-====>WithCtorWithArgs
-====>newInstance()
-
-Warning: Missing argument 1 for WithCtorWithArgs::__construct() in %s007.php on line %d
-
-Notice: Undefined variable: arg in %s007.php on line %d
-WithCtorWithArgs::__construct()
-array(0) {
-}
-object(WithCtorWithArgs)#%d (0) {
-}
-====>newInstance(25)
-WithCtorWithArgs::__construct(25)
-array(1) {
- [0]=>
- int(25)
-}
-object(WithCtorWithArgs)#%d (0) {
-}
-====>newInstance(25, 42)
-WithCtorWithArgs::__construct(25)
-array(2) {
- [0]=>
- int(25)
- [1]=>
- int(42)
-}
-object(WithCtorWithArgs)#%d (0) {
-}
-
-===DONE===
---UEXPECTF--
====>Class_does_not_exist
__autoload(Class_does_not_exist)
unicode(41) "Class Class_does_not_exist does not exist"
echo "Done\n";
?>
--EXPECT--
-string(20) "Invalid method name "
-string(21) "Invalid method name 1"
-string(21) "Class does not exist"
-string(22) "Class a does not exist"
-string(21) "Class does not exist"
-string(22) "Class a does not exist"
-string(21) "Class does not exist"
-string(66) "The parameter class is expected to be either a string or an object"
-string(21) "Class does not exist"
-Done
---UEXPECT--
unicode(20) "Invalid method name "
unicode(21) "Invalid method name 1"
unicode(21) "Class does not exist"
var_dump($inis["user_agent"]);
?>
--EXPECT--
-string(3) "php"
---UEXPECT--
unicode(3) "php"
var_dump($deps);
?>
--EXPECT--
-array(1) {
- ["libxml"]=>
- string(8) "Required"
-}
---UEXPECT--
array(1) {
[u"libxml"]=>
unicode(8) "Required"
Class [ <user> class Foo ] {
@@ %s017.php 2-4
- - Constants [1] {
- Constant [ string test ] { ok }
- }
-
- - Static properties [0] {
- }
-
- - Static methods [0] {
- }
-
- - Properties [0] {
- }
-
- - Methods [0] {
- }
-}
---UEXPECTF--
-Class [ <user> class Foo ] {
- @@ %s017.php 2-4
-
- Constants [1] {
Constant [ Unicode string test ] { ok }
}
var_dump(Reflection::getModifierNames(ReflectionMethod::IS_FINAL | ReflectionMethod::IS_PROTECTED));
?>
--EXPECT--
-array(2) {
- [0]=>
- string(5) "final"
- [1]=>
- string(9) "protected"
-}
---UEXPECT--
array(2) {
[0]=>
unicode(5) "final"
var_dump($f->getExtensionName());
?>
--EXPECT--
-string(8) "standard"
---UEXPECT--
unicode(8) "standard"
bool(true)
bool(true)
bool(true)
-string(2) "p4"
-bool(false)
---UEXPECT--
-bool(true)
-bool(true)
-bool(true)
unicode(2) "p4"
bool(false)
var_dump($class->getDefaultProperties());
?>
--EXPECT--
-array(5) {
- ["p4"]=>
- int(4)
- ["p5"]=>
- int(5)
- ["p6"]=>
- int(6)
- ["p2"]=>
- int(2)
- ["p3"]=>
- int(3)
-}
---UEXPECT--
array(5) {
[u"p4"]=>
int(4)
/**
hoho
*/
-Function [ <user> function test ] {
- @@ %s025.php 6 - 8
-
- - Parameters [3] {
- Parameter #0 [ <required> $a ]
- Parameter #1 [ <optional> $b = 1 ]
- Parameter #2 [ <optional> $c = '' ]
- }
-}
-
-NULL
---getName--
-string(4) "test"
---isInternal--
-bool(false)
---isUserDefined--
-bool(true)
---getFilename--
-string(%d) "%s025.php"
---getStartline--
-int(6)
---getEndline--
-int(8)
---getDocComment--
-string(11) "/**
-hoho
-*/"
---getStaticVariables--
-array(1) {
- ["var"]=>
- int(1)
-}
---invoke--
-NULL
---invokeArgs--
-NULL
---returnsReference--
-bool(false)
---getParameters--
-array(3) {
- [0]=>
- &object(ReflectionParameter)#2 (1) {
- ["name"]=>
- string(1) "a"
- }
- [1]=>
- &object(ReflectionParameter)#3 (1) {
- ["name"]=>
- string(1) "b"
- }
- [2]=>
- &object(ReflectionParameter)#4 (1) {
- ["name"]=>
- string(1) "c"
- }
-}
---getNumberOfParameters--
-int(3)
---getNumberOfRequiredParameters--
-int(1)
-Done
---UEXPECTF--
-/**
-hoho
-*/
Function [ <user> function test ] {
@@ %s 6 - 8
?>
--EXPECTF--
object(ReflectionExtension)#%i (1) {
- ["name"]=>
- string(8) "standard"
+ [u"name"]=>
+ unicode(8) "standard"
}
NULL
var_dump($function->getExtensionName());
?>
--EXPECT--
-string(8) "standard"
+unicode(8) "standard"
bool(false)
**********************************
Reflecting on method DerivedClass::foo()
-__toString():
-string(%d) "Method [ <user, inherits TestClass> public method foo ] {
- @@ %s 16 - 18
-}
-"
-
-export():
-string(%d) "Method [ <user, inherits TestClass> public method foo ] {
- @@ %s 16 - 18
-}
-"
-
-**********************************
-**********************************
-Reflecting on method TestClass::stat()
-
-__toString():
-string(%d) "Method [ <user> static public method stat ] {
- @@ %s 20 - 22
-}
-"
-
-export():
-string(%d) "Method [ <user> static public method stat ] {
- @@ %s 20 - 22
-}
-"
-
-**********************************
-**********************************
-Reflecting on method TestClass::priv()
-
-__toString():
-string(%d) "Method [ <user> private method priv ] {
- @@ %s 24 - 26
-}
-"
-
-export():
-string(%d) "Method [ <user> private method priv ] {
- @@ %s 24 - 26
-}
-"
-
-**********************************
-**********************************
-Reflecting on method TestClass::prot()
-
-__toString():
-string(%d) "Method [ <user> protected method prot ] {
- @@ %s 28 - 28
-}
-"
-
-export():
-string(%d) "Method [ <user> protected method prot ] {
- @@ %s 28 - 28
-}
-"
-
-**********************************
-**********************************
-Reflecting on method DerivedClass::prot()
-
-__toString():
-string(%d) "Method [ <user, inherits TestClass> protected method prot ] {
- @@ %s 28 - 28
-}
-"
-
-export():
-string(%d) "Method [ <user, inherits TestClass> protected method prot ] {
- @@ %s 28 - 28
-}
-"
-
-**********************************
-**********************************
-Reflecting on method TestInterface::int()
-
-__toString():
-string(%d) "Method [ <user> abstract public method int ] {
- @@ %s 36 - 36
-}
-"
-
-export():
-string(%d) "Method [ <user> abstract public method int ] {
- @@ %s 36 - 36
-}
-"
-
-**********************************
-**********************************
-Reflecting on method ReflectionProperty::__construct()
-
-__toString():
-string(%d) "Method [ <internal:Reflection, ctor> public method __construct ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $argument ]
- }
-}
-"
-
-export():
-string(%d) "Method [ <internal:Reflection, ctor> public method __construct ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $argument ]
- }
-}
-"
-
-**********************************
-**********************************
-Reflecting on method TestClass::__destruct()
-
-__toString():
-string(%d) "Method [ <user, dtor> public method __destruct ] {
- @@ %s 30 - 30
-}
-"
-
-export():
-string(%d) "Method [ <user, dtor> public method __destruct ] {
- @@ %s 30 - 30
-}
-"
-
-**********************************
---UEXPECTF--
-**********************************
-Reflecting on method DerivedClass::foo()
-
__toString():
unicode(%d) "Method [ <user, inherits TestClass> public method foo ] {
@@ %sReflectionMethod_basic2.php 16 - 18
Reflecting on method DerivedClass::foo()
-getName():
-string(3) "foo"
-
-isInternal():
-bool(false)
-
-isUserDefined():
-bool(true)
-
-**********************************
-**********************************
-Reflecting on method TestClass::stat()
-
-
-getName():
-string(4) "stat"
-
-isInternal():
-bool(false)
-
-isUserDefined():
-bool(true)
-
-**********************************
-**********************************
-Reflecting on method TestClass::priv()
-
-
-getName():
-string(4) "priv"
-
-isInternal():
-bool(false)
-
-isUserDefined():
-bool(true)
-
-**********************************
-**********************************
-Reflecting on method TestClass::prot()
-
-
-getName():
-string(4) "prot"
-
-isInternal():
-bool(false)
-
-isUserDefined():
-bool(true)
-
-**********************************
-**********************************
-Reflecting on method DerivedClass::prot()
-
-
-getName():
-string(4) "prot"
-
-isInternal():
-bool(false)
-
-isUserDefined():
-bool(true)
-
-**********************************
-**********************************
-Reflecting on method TestInterface::int()
-
-
-getName():
-string(3) "int"
-
-isInternal():
-bool(false)
-
-isUserDefined():
-bool(true)
-
-**********************************
-**********************************
-Reflecting on method ReflectionProperty::__construct()
-
-
-getName():
-string(11) "__construct"
-
-isInternal():
-bool(true)
-
-isUserDefined():
-bool(false)
-
-**********************************
-**********************************
-Reflecting on method TestClass::__destruct()
-
-
-getName():
-string(10) "__destruct"
-
-isInternal():
-bool(false)
-
-isUserDefined():
-bool(true)
-
-**********************************
---UEXPECT--
-**********************************
-Reflecting on method DerivedClass::foo()
-
-
getName():
unicode(3) "foo"
Reflecting on method DerivedClass::foo()
-getFileName():
-string(%d) "%sReflectionMethod_basic4.php"
-
-getStartLine():
-int(18)
-
-getEndLine():
-int(24)
-
-**********************************
-**********************************
-Reflecting on method TestClass::stat()
-
-
-getFileName():
-string(%d) "%sReflectionMethod_basic4.php"
-
-getStartLine():
-int(26)
-
-getEndLine():
-int(28)
-
-**********************************
-**********************************
-Reflecting on method TestClass::priv()
-
-
-getFileName():
-string(%d) "%sReflectionMethod_basic4.php"
-
-getStartLine():
-int(30)
-
-getEndLine():
-int(32)
-
-**********************************
-**********************************
-Reflecting on method TestClass::prot()
-
-
-getFileName():
-string(%d) "%sReflectionMethod_basic4.php"
-
-getStartLine():
-int(34)
-
-getEndLine():
-int(34)
-
-**********************************
-**********************************
-Reflecting on method DerivedClass::prot()
-
-
-getFileName():
-string(%d) "%sReflectionMethod_basic4.php"
-
-getStartLine():
-int(34)
-
-getEndLine():
-int(34)
-
-**********************************
-**********************************
-Reflecting on method TestInterface::int()
-
-
-getFileName():
-string(%d) "%sReflectionMethod_basic4.php"
-
-getStartLine():
-int(42)
-
-getEndLine():
-int(42)
-
-**********************************
-**********************************
-Reflecting on method ReflectionProperty::__construct()
-
-
-getFileName():
-bool(false)
-
-getStartLine():
-bool(false)
-
-getEndLine():
-bool(false)
-
-**********************************
-**********************************
-Reflecting on method TestClass::__destruct()
-
-
-getFileName():
-string(%d) "%sReflectionMethod_basic4.php"
-
-getStartLine():
-int(36)
-
-getEndLine():
-int(36)
-
-**********************************
---UEXPECTF--
-**********************************
-Reflecting on method DerivedClass::foo()
-
-
getFileName():
unicode(%d) "%sReflectionMethod_basic4.php"
?>
--EXPECTF--
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(1) "A"
-}
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(1) "B"
-}
---UEXPECTF--
object(ReflectionClass)#%d (1) {
[u"name"]=>
unicode(1) "A"
?>
--EXPECTF--
-
----> Doc comment for A::f():
-string(%d) "/**
- * My Doc Comment for A::f
- */"
-
-
----> Doc comment for A::privf():
-string(%d) "/**
- * My Doc Comment for A::privf
- */"
-
-
----> Doc comment for A::protStatf():
-string(%d) "/** My Doc Comment for A::protStatf */"
-
-
----> Doc comment for A::finalStatPubf():
-string(%d) "/**
-
- * My Doc Comment for A::finalStatPubf
- */"
-
-
----> Doc comment for B::f():
-bool(false)
-
-
----> Doc comment for B::privf():
-string(%d) "/** *
- * My Doc Comment for B::privf
- */"
-
-
----> Doc comment for B::protStatf():
-string(%d) "/** My Doc Comment for B::protStatf
-
-
-
-
- */"
-
-
----> Doc comment for B::finalStatPubf():
-string(%d) "/**
-
- * My Doc Comment for A::finalStatPubf
- */"
---UEXPECTF--
---> Doc comment for A::f():
unicode(%s) "/**
* My Doc Comment for A::f
?>
--EXPECT--
Public method:
-array(3) {
- ["c"]=>
- NULL
- ["a"]=>
- int(1)
- ["b"]=>
- string(5) "hello"
-}
-
-Private method:
-array(1) {
- ["a"]=>
- int(1)
-}
-
-Method with no static variables:
-array(0) {
-}
-
-Internal Method:
-array(0) {
-}
---UEXPECT--
-Public method:
array(3) {
[u"c"]=>
NULL
--EXPECTF--
Public method:
Called foo(), property = Hello
-object(TestClass)#%d (1) {
- ["prop"]=>
- string(5) "Hello"
-}
-string(10) "Return Val"
-Called foo(), property = Hello
-object(TestClass)#%d (1) {
- ["prop"]=>
- string(5) "Hello"
-}
-string(10) "Return Val"
-
-Method with args:
-Called methodWithArgs(1, arg2)
-NULL
-Called methodWithArgs(1, arg2)
-NULL
-
-Method that throws an exception:
-string(18) "Called willThrow()"
---UEXPECTF--
-Public method:
-Called foo(), property = Hello
object(TestClass)#%d (1) {
[u"prop"]=>
unicode(5) "Hello"
--EXPECTF--
Wrong number of parameters:
-Warning: ReflectionMethod::invokeArgs() expects exactly 2 parameters, 0 given in %s on line %d
-NULL
-
-Warning: ReflectionMethod::invokeArgs() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-
-Non-instance:
-string(72) "Given object is not an instance of the class this method was declared in"
-
-Non-object:
-
-Warning: ReflectionMethod::invokeArgs() expects parameter 1 to be object, boolean given in %s on line %d
-NULL
-
-Static method:
-
-Warning: ReflectionMethod::invokeArgs() expects exactly 2 parameters, 0 given in %s on line %d
-NULL
-
-Warning: ReflectionMethod::invokeArgs() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-
-Warning: ReflectionMethod::invokeArgs() expects parameter 1 to be object, boolean given in %s on line %d
-NULL
-Called staticMethod()
-
-Notice: Undefined variable: this in %s on line %d
-NULL
-NULL
-
-Private method:
-string(84) "Trying to invoke private method TestClass::privateMethod from scope ReflectionMethod"
-
-Abstract method:
-string(51) "Trying to invoke abstract method AbstractClass::foo"
-
-Warning: ReflectionMethod::invokeArgs() expects exactly 2 parameters, 1 given in %s on line %d
---UEXPECTF--
-Wrong number of parameters:
-
Warning: ReflectionMethod::invokeArgs() expects exactly 2 parameters, 0 given in %sReflectionMethod_invokeArgs_error3.php on line %d
NULL
--EXPECTF--
Public method:
Called foo(), property = Hello
-object(TestClass)#%d (1) {
- ["prop"]=>
- string(5) "Hello"
-}
-string(10) "Return Val"
-Called foo(), property = Hello
-object(TestClass)#%d (1) {
- ["prop"]=>
- string(5) "Hello"
-}
-string(10) "Return Val"
-
-Method with args:
-Called methodWithArgs(1, arg2)
-NULL
-Called methodWithArgs(1, arg2)
-NULL
-
-Static method:
-
-Warning: Invoke() expects at least one parameter, none given in %s on line %d
-bool(false)
-Called staticMethod()
-
-Notice: Undefined variable: this in %s on line %d
-NULL
-NULL
-Called staticMethod()
-
-Notice: Undefined variable: this in %s on line %d
-NULL
-NULL
-
-Method that throws an exception:
-string(18) "Called willThrow()"
---UEXPECTF--
-Public method:
-Called foo(), property = Hello
object(TestClass)#%d (1) {
[u"prop"]=>
unicode(5) "Hello"
?>
--EXPECT--
invoke() on a non-object:
-string(29) "Non-object passed to Invoke()"
-
-invoke() on a non-instance:
-string(72) "Given object is not an instance of the class this method was declared in"
-
-Private method:
-string(86) "Trying to invoke private method TestClass::privateMethod() from scope ReflectionMethod"
-
-Abstract method:
-string(53) "Trying to invoke abstract method AbstractClass::foo()"
---UEXPECT--
-invoke() on a non-object:
unicode(29) "Non-object passed to Invoke()"
invoke() on a non-instance:
?>
===DONE===
--EXPECT--
-string(3) "Foo"
-===DONE===
---UEXPECT--
unicode(3) "Foo"
===DONE===
Class [ <user> class just_constants ] {
@@ %s %d-%d
- - Constants [5] {
- Constant [ boolean BOOLEAN_CONSTANT ] { 1 }
- Constant [ null NULL_CONSTANT ] { }
- Constant [ string STRING_CONSTANT ] { This is a string }
- Constant [ integer INTEGER_CONSTANT ] { 1000 }
- Constant [ double FLOAT_CONSTANT ] { 3.14159265 }
- }
-
- - Static properties [0] {
- }
-
- - Static methods [0] {
- }
-
- - Properties [0] {
- }
-
- - Methods [0] {
- }
-}
---UEXPECTF--
-Class [ <user> class just_constants ] {
- @@ %s %d-%d
-
- Constants [5] {
Constant [ boolean BOOLEAN_CONSTANT ] { 1 }
Constant [ null NULL_CONSTANT ] { }
?>
===DONE===
--EXPECTF--
-string(7) "testBAR"
-string(7) "testBAR"
-===DONE===
---UEXPECTF--
unicode(7) "testBAR"
unicode(7) "testBAR"
===DONE===
?>
===DONE===
--EXPECT--
-array(1) {
- ["a"]=>
- string(4) "test"
-}
-===DONE===
---UEXPECT--
array(1) {
[u"a"]=>
unicode(4) "test"
?>
===DONE===
--EXPECT--
-string(4) "test"
-array(1) {
- [0]=>
- array(1) {
- ["enabled"]=>
- bool(true)
- }
-}
-===DONE===
---UEXPECT--
unicode(4) "test"
array(1) {
[0]=>
var_dump(isset($properties["bar"]));
?>
--EXPECT--
-array(2) {
- ["bar"]=>
- string(3) "baz"
- ["a"]=>
- string(1) "a"
-}
-array(2) {
- [0]=>
- string(3) "bar"
- [1]=>
- string(1) "a"
-}
-bool(false)
-bool(false)
-bool(true)
---UEXPECT--
array(2) {
[u"bar"]=>
unicode(3) "baz"
Warning: Missing argument 1 for Object1::__construct() in %s on line %d
-Notice: Undefined variable: var in %s on line %d
-NULL
-object(Object1)#%d (0) {
-}
-string(4) "test"
-object(Object1)#%d (0) {
-}
-Done
---UEXPECTF--
-object(Object)#%d (0) {
-}
-
-Warning: Missing argument 1 for Object1::__construct() in %s on line %d
-
Notice: Undefined variable: var in %s on line %d
NULL
object(Object1)#%d (0) {
?>
--EXPECTF--
int(10)
-string(0) ""
-string(4) "test"
-bool(false)
-Done
---UEXPECTF--
-int(10)
unicode(0) ""
unicode(4) "test"
bool(false)
echo "Done\n";
?>
--EXPECTF--
-string(7) "CParent"
-string(7) "CParent"
-Done
---UEXPECTF--
unicode(7) "CParent"
unicode(7) "CParent"
Done
echo "Done\n";
?>
--EXPECTF--
-string(1) "C"
-string(1) "B"
-string(1) "A"
-string(5) "Test2"
-Done
---UEXPECTF--
unicode(1) "C"
unicode(1) "B"
unicode(1) "A"
var_dump($refParam->getClass());
?>
--EXPECT--
-object(ReflectionClass)#4 (1) {
- ["name"]=>
- string(13) "stubParamTest"
-}
---UEXPECT--
object(ReflectionClass)#4 (1) {
[u"name"]=>
unicode(13) "stubParamTest"
--EXPECTF--
=== 1st test ===
-Strict Standards: Creating default object from empty value in %s on line %d
-array(1) {
- [0]=>
- &object(ReflectionProperty)#%d (2) {
- ["name"]=>
- string(5) "value"
- ["class"]=>
- string(8) "stdClass"
- }
-}
-bool(false)
-bool(false)
-bool(true)
-bool(false)
-=== 2nd test ===
-array(1) {
- [0]=>
- &object(ReflectionProperty)#%d (2) {
- ["name"]=>
- string(5) "value"
- ["class"]=>
- string(5) "test2"
- }
-}
-bool(false)
-bool(false)
-bool(true)
-bool(false)
-=== 3rd test ===
-array(1) {
- [0]=>
- &object(ReflectionProperty)#%d (2) {
- ["name"]=>
- string(5) "value"
- ["class"]=>
- string(5) "test3"
- }
-}
-bool(false)
-bool(false)
-bool(true)
-bool(false)
-=== 4th test ===
-array(1) {
- [0]=>
- &object(ReflectionProperty)#%d (2) {
- ["name"]=>
- string(5) "value"
- ["class"]=>
- string(5) "test4"
- }
-}
-bool(false)
-bool(false)
-bool(true)
-bool(false)
-Done
---UEXPECTF--
-=== 1st test ===
-
Strict Standards: Creating default object from empty value in %s on line %d
array(1) {
[0]=>
echo "Done\n";
?>
--EXPECTF--
-array(3) {
- ["prop1"]=>
- string(1) "1"
- ["prop2"]=>
- string(1) "2"
- ["prop3"]=>
- string(1) "3"
-}
-Done
---UEXPECTF--
array(3) {
[u"prop1"]=>
unicode(1) "1"
echo "Done\n";
?>
--EXPECTF--
-array(2) {
- ["fooStatic"]=>
- string(3) "foo"
- ["foo"]=>
- string(3) "foo"
-}
-Done
---UEXPECTF--
array(2) {
[u"fooStatic"]=>
unicode(3) "foo"
echo "Done\n";
?>
--EXPECTF--
-string(9) "x.changed"
-
-Warning: Parameter 1 to C::__construct() expected to be a reference, value given in %sbug42976.php on line 15
-
-Warning: Invocation of C's constructor failed in %sbug42976.php on line 15
-string(10) "x.original"
-
-Warning: Parameter 1 to C::__construct() expected to be a reference, value given in %sbug42976.php on line 18
-
-Warning: Invocation of C's constructor failed in %sbug42976.php on line 18
-string(10) "x.original"
-Done
---UEXPECTF--
unicode(9) "x.changed"
Warning: Parameter 1 to C::__construct() expected to be a reference, value given in %sbug42976.php on line 15
Is? C false, instanceof: false
Is? D false, instanceof: false
Is? E true, instanceof: true
---UEXPECT--
-Is? A true, instanceof: true
-Is? C false, instanceof: false
-Is? D true, instanceof: true
-Is? E true, instanceof: true
--
-Is? A true, instanceof: true
-Is? C true, instanceof: true
-Is? D true, instanceof: true
-Is? E true, instanceof: true
--
-Is? A false, instanceof: false
-Is? C false, instanceof: false
-Is? D true, instanceof: true
-Is? E true, instanceof: true
--
-Is? A false, instanceof: false
-Is? C false, instanceof: false
-Is? D false, instanceof: false
-Is? E true, instanceof: true
int(1)
bool(false)
bool(true)
-string(54) "The parameter specified by its name could not be found"
-===DONE===
---UEXPECT--
-int(2)
-int(1)
-bool(false)
-bool(true)
unicode(54) "The parameter specified by its name could not be found"
===DONE===
--EXPECT--
#####test()#####
===0===
-getName: string(3) "nix"
-isPassedByReference: bool(false)
-getClass: NULL
-getDeclaringClass: NULL
-getDeclaringFunction: test()
-isArray: bool(false)
-allowsNull: bool(true)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===1===
-getName: string(2) "ar"
-isPassedByReference: bool(false)
-getClass: NULL
-getDeclaringClass: NULL
-getDeclaringFunction: test()
-isArray: bool(true)
-allowsNull: bool(false)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===2===
-getName: string(3) "ref"
-isPassedByReference: bool(true)
-getClass: NULL
-getDeclaringClass: NULL
-getDeclaringFunction: test()
-isArray: bool(false)
-allowsNull: bool(true)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===3===
-getName: string(3) "std"
-isPassedByReference: bool(false)
-getClass: stdClass
-getDeclaringClass: NULL
-getDeclaringFunction: test()
-isArray: bool(false)
-allowsNull: bool(false)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===4===
-getName: string(2) "na"
-isPassedByReference: bool(false)
-Class NonExistingClass does not exist
-getDeclaringClass: NULL
-getDeclaringFunction: test()
-isArray: bool(false)
-allowsNull: bool(false)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===5===
-getName: string(3) "opt"
-isPassedByReference: bool(true)
-getClass: stdClass
-getDeclaringClass: NULL
-getDeclaringFunction: test()
-isArray: bool(false)
-allowsNull: bool(true)
-isOptional: bool(true)
-isDefaultValueAvailable: bool(true)
-getDefaultValue: NULL
-===6===
-getName: string(3) "def"
-isPassedByReference: bool(false)
-getClass: NULL
-getDeclaringClass: NULL
-getDeclaringFunction: test()
-isArray: bool(false)
-allowsNull: bool(true)
-isOptional: bool(true)
-isDefaultValueAvailable: bool(true)
-getDefaultValue: string(6) "FooBar"
-#####test::test()#####
-===0===
-getName: string(3) "nix"
-isPassedByReference: bool(false)
-getClass: NULL
-getDeclaringClass: test
-getDeclaringFunction: test::test()
-isArray: bool(false)
-allowsNull: bool(true)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===1===
-getName: string(2) "ar"
-isPassedByReference: bool(false)
-getClass: NULL
-getDeclaringClass: test
-getDeclaringFunction: test::test()
-isArray: bool(true)
-allowsNull: bool(false)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===2===
-getName: string(3) "ref"
-isPassedByReference: bool(true)
-getClass: NULL
-getDeclaringClass: test
-getDeclaringFunction: test::test()
-isArray: bool(false)
-allowsNull: bool(true)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===3===
-getName: string(3) "std"
-isPassedByReference: bool(false)
-getClass: stdClass
-getDeclaringClass: test
-getDeclaringFunction: test::test()
-isArray: bool(false)
-allowsNull: bool(false)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===4===
-getName: string(2) "na"
-isPassedByReference: bool(false)
-Class NonExistingClass does not exist
-getDeclaringClass: test
-getDeclaringFunction: test::test()
-isArray: bool(false)
-allowsNull: bool(false)
-isOptional: bool(false)
-isDefaultValueAvailable: bool(false)
-===5===
-getName: string(3) "opt"
-isPassedByReference: bool(false)
-getClass: stdClass
-getDeclaringClass: test
-getDeclaringFunction: test::test()
-isArray: bool(false)
-allowsNull: bool(true)
-isOptional: bool(true)
-isDefaultValueAvailable: bool(true)
-getDefaultValue: NULL
-===6===
-getName: string(3) "def"
-isPassedByReference: bool(false)
-getClass: NULL
-getDeclaringClass: test
-getDeclaringFunction: test::test()
-isArray: bool(false)
-allowsNull: bool(true)
-isOptional: bool(true)
-isDefaultValueAvailable: bool(true)
-getDefaultValue: string(6) "FooBar"
-===DONE===
---UEXPECT--
-#####test()#####
-===0===
getName: unicode(3) "nix"
isPassedByReference: bool(false)
getClass: NULL
}
?>
--EXPECTF--
-string(%d) "%sreflectionClass_FileInfo_basic.php"
-int(20)
-int(22)
-bool(false)
-bool(false)
-bool(false)
---UEXPECTF--
unicode(%d) "%sreflectionClass_FileInfo_basic.php"
int(20)
int(22)
}
?>
--EXPECTF--
-string(%d) "%s"
-
-Warning: Wrong parameter count for ReflectionClass::getFileName() in %s on line 9
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getFileName() in %s on line 10
-NULL
-int(2)
-
-Warning: Wrong parameter count for ReflectionClass::getStartLine() in %s on line 9
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getStartLine() in %s on line 10
-NULL
-int(2)
-
-Warning: Wrong parameter count for ReflectionClass::getEndLine() in %s on line 9
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getEndLine() in %s on line 10
-NULL
---UEXPECTF--
unicode(%d) "%s"
Warning: Wrong parameter count for ReflectionClass::getFileName() in %s on line 9
var_dump($r1, $r2, $r3);
?>
--EXPECTF--
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(8) "stdClass"
-}
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(8) "stdClass"
-}
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(10) "TrickClass"
-}
---UEXPECTF--
object(ReflectionClass)#%d (1) {
[u"name"]=>
unicode(8) "stdClass"
?>
--EXPECTF--
-Warning: ReflectionClass::__construct() expects exactly 1 parameter, 0 given in %s on line 3
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-Class does not exist
-Class 1 does not exist
-Class 1 does not exist
-
-Warning: ReflectionClass::__construct() expects parameter 1 to be string (Unicode or binary), array given in %s on line 27
-object(ReflectionClass)#3 (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionClass::__construct() expects exactly 1 parameter, 2 given in %s on line 33
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-Class X does not exist
---UEXPECTF--
-
Warning: ReflectionClass::__construct() expects exactly 1 parameter, 0 given in %s on line 3
object(ReflectionClass)#%d (1) {
[u"name"]=>
?>
--EXPECTF--
Reflecting on class C:
-string(12) "hello from C"
-bool(false)
-Reflecting on class D:
-string(12) "hello from C"
-bool(false)
-Reflecting on class E:
-string(12) "hello from C"
-bool(false)
-Reflecting on class F:
-string(12) "hello from F"
-bool(false)
-Reflecting on class X:
-bool(false)
-bool(false)
---UEXPECTF--
-Reflecting on class C:
unicode(12) "hello from C"
bool(false)
Reflecting on class D:
Warning: ReflectionClass::getConstant() expects parameter 1 to be string (Unicode or binary), object given in %s on line 15
NULL
---UEXPECTF--
-Check invalid params:
-
-Warning: ReflectionClass::getConstant() expects exactly 1 parameter, 0 given in %s on line 8
-NULL
-
-Warning: ReflectionClass::getConstant() expects exactly 1 parameter, 2 given in %s on line 9
-NULL
-bool(false)
-bool(false)
-bool(false)
-bool(false)
-
-Warning: ReflectionClass::getConstant() expects parameter 1 to be string (Unicode or binary), array given in %s on line 14
-NULL
-
-Warning: ReflectionClass::getConstant() expects parameter 1 to be string (Unicode or binary), object given in %s on line 15
-NULL
?>
--EXPECTF--
Constants from class C:
-array(1) {
- ["a"]=>
- string(12) "hello from C"
-}
-Constants from class D:
-array(1) {
- ["a"]=>
- string(12) "hello from C"
-}
-Constants from class E:
-array(1) {
- ["a"]=>
- string(12) "hello from C"
-}
-Constants from class F:
-array(1) {
- ["a"]=>
- string(12) "hello from F"
-}
-Constants from class X:
-array(0) {
-}
---UEXPECTF--
-Constants from class C:
array(1) {
[u"a"]=>
unicode(12) "hello from C"
Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 10
Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 11
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 8
-
-Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 9
-
-Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 10
-
-Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 11
var_dump( $rc->getExtensionName()) ;
?>
--EXPECT--
-string(3) "dom"
---UEXPECT--
-unicode(3) "dom"
\ No newline at end of file
+unicode(3) "dom"
var_dump($rc->getExtension()) ;
?>
--EXPECTF--
-object(ReflectionExtension)#%d (1) {
- ["name"]=>
- string(3) "dom"
-}
---UEXPECTF--
object(ReflectionExtension)#%d (1) {
[u"name"]=>
unicode(3) "dom"
var_dump($rc1->getInterfaceNames());
?>
--EXPECT--
-array(2) {
- [0]=>
- string(3) "Foo"
- [1]=>
- string(3) "Bar"
-}
---UEXPECT--
array(2) {
[0]=>
unicode(3) "Foo"
[1]=>
unicode(3) "Bar"
-}
\ No newline at end of file
+}
?>
--EXPECTF--
-string(8) "stdClass"
-string(8) "stdClass"
-string(10) "TrickClass"
---UEXPECTF--
unicode(8) "stdClass"
unicode(8) "stdClass"
unicode(10) "TrickClass"
Warning: Wrong parameter count for ReflectionClass::getName() in %s on line 6
NULL
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::getName() in %s on line 5
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getName() in %s on line 6
-NULL
?>
--EXPECTF--
Fatal error: Non-static method ReflectionClass::getName() cannot be called statically in %s on line 2
---UEXPECTF--
-Fatal error: Non-static method ReflectionClass::getName() cannot be called statically in %s on line 2
var_dump($rc1->getParentClass());
?>
--EXPECTF--
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(3) "Foo"
-}
---UEXPECTF--
object(ReflectionClass)#%d (1) {
[u"name"]=>
unicode(3) "Foo"
-}
\ No newline at end of file
+}
is myB a X? bool(false)
is myC a X? bool(false)
is myX a X? bool(true)
---UEXPECTF--
-is myA a A? bool(true)
-is myB a A? bool(true)
-is myC a A? bool(false)
-is myX a A? bool(false)
-is myA a B? bool(false)
-is myB a B? bool(true)
-is myC a B? bool(false)
-is myX a B? bool(false)
-is myA a C? bool(false)
-is myB a C? bool(false)
-is myC a C? bool(true)
-is myX a C? bool(false)
-is myA a I? bool(false)
-is myB a I? bool(false)
-is myC a I? bool(true)
-is myX a I? bool(false)
-is myA a X? bool(false)
-is myB a X? bool(false)
-is myC a X? bool(false)
-is myX a X? bool(true)
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, boolean given in %s on line 11
NULL
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, string given in %s on line 12
-NULL
-
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, null given in %s on line 13
-NULL
---UEXPECTF--
-Warning: ReflectionClass::isInstance() expects exactly 1 parameter, 0 given in %s on line 7
-NULL
-
-Warning: ReflectionClass::isInstance() expects exactly 1 parameter, 2 given in %s on line 8
-NULL
-
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, %s given in %s on line 9
-NULL
-
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, double given in %s on line 10
-NULL
-
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, boolean given in %s on line 11
-NULL
-
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, Unicode string given in %s on line 12
NULL
Is ifaceImpl instantiable? bool(true)
Is abstractClass instantiable? bool(false)
Is D instantiable? bool(true)
---UEXPECTF--
-Is C instantiable? bool(true)
-Is iface instantiable? bool(false)
-Is ifaceImpl instantiable? bool(true)
-Is abstractClass instantiable? bool(false)
-Is D instantiable? bool(true)
Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 8
NULL
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 7
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 8
-NULL
Is publicCtorOld instantiable? bool(true)
Is protectedCtorOld instantiable? bool(false)
Is privateCtorOld instantiable? bool(false)
---UEXPECTF--
-Is noCtor instantiable? bool(true)
-Is publicCtorNew instantiable? bool(true)
-Is protectedCtorNew instantiable? bool(false)
-Is privateCtorNew instantiable? bool(false)
-Is publicCtorOld instantiable? bool(true)
-Is protectedCtorOld instantiable? bool(false)
-Is privateCtorOld instantiable? bool(false)
bool(true)
bool(true)
bool(false)
---UEXPECTF--
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(false)
Warning: Wrong parameter count for ReflectionClass::isInternal() in %s on line 4
NULL
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::isInternal() in %s on line 3
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::isInternal() in %s on line 4
-NULL
Is X a subclass of X?
- Using object argument: bool(false)
- Using string argument: bool(false)
---UEXPECTF--
-Is A a subclass of A?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is A a subclass of B?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is A a subclass of C?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is A a subclass of I?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is A a subclass of X?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is B a subclass of A?
- - Using object argument: bool(true)
- - Using string argument: bool(true)
-Is B a subclass of B?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is B a subclass of C?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is B a subclass of I?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is B a subclass of X?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is C a subclass of A?
- - Using object argument: bool(true)
- - Using string argument: bool(true)
-Is C a subclass of B?
- - Using object argument: bool(true)
- - Using string argument: bool(true)
-Is C a subclass of C?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is C a subclass of I?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is C a subclass of X?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is I a subclass of A?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is I a subclass of B?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is I a subclass of C?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is I a subclass of I?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is I a subclass of X?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is X a subclass of A?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is X a subclass of B?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is X a subclass of C?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
-Is X a subclass of I?
- - Using object argument: bool(true)
- - Using string argument: bool(true)
-Is X a subclass of X?
- - Using object argument: bool(false)
- - Using string argument: bool(false)
Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given in %s on line 6
NULL
---UEXPECTF--
-Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 0 given in %s on line 5
-NULL
-
-Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given in %s on line 6
-NULL
#0 %s(5): ReflectionClass->isSubclassOf('X')
#1 {main}
thrown in %s on line 5
---UEXPECTF--
-Fatal error: Uncaught exception 'ReflectionException' with message 'Class X does not exist' in %s:5
-Stack trace:
-#0 %s(5): ReflectionClass->isSubclassOf('X')
-#1 {main}
- thrown in %s on line 5
bool(false)
bool(false)
bool(true)
---UEXPECTF--
-bool(false)
-bool(false)
-bool(false)
-bool(false)
-bool(true)
Warning: Wrong parameter count for ReflectionClass::isUserDefined() in %s on line 4
NULL
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::isUserDefined() in %s on line 3
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::isUserDefined() in %s on line 4
-NULL
}
?>
--EXPECTF--
-string(%d) "%sreflectionObject_FileInfo_basic.php"
-int(12)
-int(14)
-bool(false)
-bool(false)
-bool(false)
---UEXPECTF--
unicode(%d) "%sreflectionObject_FileInfo_basic.php"
int(12)
int(14)
}
?>
--EXPECTF--
-string(%d) "%s"
-
-Warning: Wrong parameter count for ReflectionClass::getFileName() in %s on line 9
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getFileName() in %s on line 10
-NULL
-int(2)
-
-Warning: Wrong parameter count for ReflectionClass::getStartLine() in %s on line 9
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getStartLine() in %s on line 10
-NULL
-int(2)
-
-Warning: Wrong parameter count for ReflectionClass::getEndLine() in %s on line 9
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getEndLine() in %s on line 10
-NULL
---UEXPECTF--
unicode(%d) "%s"
Warning: Wrong parameter count for ReflectionClass::getFileName() in %s on line 9
var_dump($r3);
?>
--EXPECTF--
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(8) "stdClass"
-}
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(1) "C"
-}
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(16) "ReflectionObject"
-}
---UEXPECTF--
object(ReflectionObject)#%d (1) {
[u"name"]=>
unicode(8) "stdClass"
?>
--EXPECTF--
Warning: ReflectionObject::__construct() expects exactly 1 parameter, 0 given in %s on line 3
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects parameter 1 to be object, string given in %s on line 4
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects exactly 1 parameter, 2 given in %s on line 6
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects parameter 1 to be object, integer given in %s on line 7
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects parameter 1 to be object, null given in %s on line 8
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
-
-Warning: ReflectionObject::__construct() expects parameter 1 to be object, array given in %s on line 9
-object(ReflectionObject)#%d (1) {
- ["name"]=>
- string(0) ""
-}
---UEXPECTF--
-Warning: ReflectionObject::__construct() expects exactly 1 parameter, 0 given in %s on line 3
object(ReflectionObject)#%d (1) {
[u"name"]=>
unicode(0) ""
?>
--EXPECTF--
Reflecting on instance of class C:
-string(12) "hello from C"
-bool(false)
-Reflecting on instance of class D:
-string(12) "hello from C"
-bool(false)
-Reflecting on instance of class E:
-string(12) "hello from C"
-bool(false)
-Reflecting on instance of class F:
-string(12) "hello from F"
-bool(false)
-Reflecting on instance of class X:
-bool(false)
-bool(false)
---UEXPECTF--
-Reflecting on instance of class C:
unicode(12) "hello from C"
bool(false)
Reflecting on instance of class D:
Warning: ReflectionClass::getConstant() expects parameter 1 to be string (Unicode or binary), object given in %s on line 14
NULL
---UEXPECTF--
-Warning: ReflectionClass::getConstant() expects exactly 1 parameter, 0 given in %s on line 7
-NULL
-
-Warning: ReflectionClass::getConstant() expects exactly 1 parameter, 2 given in %s on line 8
-NULL
-bool(false)
-bool(false)
-bool(false)
-bool(false)
-
-Warning: ReflectionClass::getConstant() expects parameter 1 to be string (Unicode or binary), array given in %s on line 13
-NULL
-
-Warning: ReflectionClass::getConstant() expects parameter 1 to be string (Unicode or binary), object given in %s on line 14
-NULL
?>
--EXPECTF--
Reflecting on instance of class C:
-array(1) {
- ["a"]=>
- string(12) "hello from C"
-}
-Reflecting on instance of class D:
-array(1) {
- ["a"]=>
- string(12) "hello from C"
-}
-Reflecting on instance of class E:
-array(1) {
- ["a"]=>
- string(12) "hello from C"
-}
-Reflecting on instance of class F:
-array(1) {
- ["a"]=>
- string(12) "hello from F"
-}
-Reflecting on instance of class X:
-array(0) {
-}
---UEXPECTF--
-Reflecting on instance of class C:
array(1) {
[u"a"]=>
unicode(12) "hello from C"
Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 7
Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 8
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 7
-
-Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 8
Constructor of D2: C
No constructor for X
No constructor for Y
---UEXPECTF--
-
-Strict Standards: Redefining already defined constructor for class OldAndNewCtor in %s on line 26
-
-Strict Standards: %s for class NewAndOldCtor in %s on line 31
-Constructor of NewCtor: __construct
-Constructor of ExtendsNewCtor: __construct
-Constructor of OldCtor: OldCtor
-Constructor of ExtendsOldCtor: OldCtor
-Constructor of OldAndNewCtor: __construct
-Constructor of NewAndOldCtor: __construct
-Constructor of B: B
-Constructor of C: C
-Constructor of D1: __construct
-Constructor of D2: C
-No constructor for X
-No constructor for Y
Warning: Wrong parameter count for ReflectionClass::getConstructor() in %s on line 7
NULL
---UEXPECTF--
-
-Warning: Wrong parameter count for ReflectionClass::getConstructor() in %s on line 4
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getConstructor() in %s on line 5
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getConstructor() in %s on line 6
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getConstructor() in %s on line 7
-NULL
?>
--EXPECTF--
-Warning: ReflectionObject::__construct() expects exactly 1 parameter, 0 given in %s on line 2
-string(0) ""
-string(8) "stdClass"
-string(1) "C"
-string(16) "ReflectionObject"
---UEXPECTF--
-
Warning: ReflectionObject::__construct() expects exactly 1 parameter, 0 given in %s on line 2
unicode(0) ""
unicode(8) "stdClass"
Warning: Wrong parameter count for ReflectionClass::getName() in %s on line 10
NULL
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::getName() in %s on line 8
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getName() in %s on line 9
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::getName() in %s on line 10
-NULL
?>
--EXPECTF--
Fatal error: Non-static method ReflectionClass::getName() cannot be called statically in %s on line 2
---UEXPECTF--
-Fatal error: Non-static method ReflectionClass::getName() cannot be called statically in %s on line 2
is myA a X? bool(false)
is myB a X? bool(false)
is myX a X? bool(true)
---UEXPECTF--
-is myA a A? bool(true)
-is myB a A? bool(true)
-is myX a A? bool(false)
-is myA a B? bool(false)
-is myB a B? bool(true)
-is myX a B? bool(false)
-is myA a X? bool(false)
-is myB a X? bool(false)
-is myX a X? bool(true)
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, boolean given in %s on line 10
NULL
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, string given in %s on line 11
-NULL
-
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, null given in %s on line 12
-NULL
---UEXPECTF--
-Warning: ReflectionClass::isInstance() expects exactly 1 parameter, 0 given in %s on line 6
-NULL
-
-Warning: ReflectionClass::isInstance() expects exactly 1 parameter, 2 given in %s on line 7
-NULL
-
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, integer given in %s on line 8
-NULL
-
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, double given in %s on line 9
-NULL
-
-Warning: ReflectionClass::isInstance() expects parameter 1 to be object, boolean given in %s on line 10
-NULL
-
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, Unicode string given in %s on line 11
NULL
Is C instantiable? bool(true)
Is ifaceImpl instantiable? bool(true)
Is D instantiable? bool(true)
---UEXPECTF--
-Is C instantiable? bool(true)
-Is ifaceImpl instantiable? bool(true)
-Is D instantiable? bool(true)
Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 11
NULL
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 10
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::isInstantiable() in %s on line 11
-NULL
Is publicCtorOld instantiable? bool(true)
Is protectedCtorOld instantiable? bool(false)
Is privateCtorOld instantiable? bool(false)
---UEXPECTF--
-Is noCtor instantiable? bool(true)
-Is publicCtorNew instantiable? bool(true)
-Is protectedCtorNew instantiable? bool(false)
-Is privateCtorNew instantiable? bool(false)
-Is publicCtorOld instantiable? bool(true)
-Is protectedCtorOld instantiable? bool(false)
-Is privateCtorOld instantiable? bool(false)
bool(true)
bool(true)
bool(false)
---UEXPECTF--
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(false)
Warning: Wrong parameter count for ReflectionClass::isInternal() in %s on line 5
NULL
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::isInternal() in %s on line 4
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::isInternal() in %s on line 5
-NULL
- Using ReflectionClass object argument: bool(false)
- Using ReflectionObject object argument: bool(false)
- Using string argument: bool(false)
---UEXPECTF--
-Is A a subclass of A?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is A a subclass of B?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is A a subclass of C?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is A a subclass of I?
- - Using ReflectionClass object argument: bool(false)
- - Using string argument: bool(false)
-Is A a subclass of X?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is B a subclass of A?
- - Using ReflectionClass object argument: bool(true)
- - Using ReflectionObject object argument: bool(true)
- - Using string argument: bool(true)
-Is B a subclass of B?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is B a subclass of C?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is B a subclass of I?
- - Using ReflectionClass object argument: bool(false)
- - Using string argument: bool(false)
-Is B a subclass of X?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is C a subclass of A?
- - Using ReflectionClass object argument: bool(true)
- - Using ReflectionObject object argument: bool(true)
- - Using string argument: bool(true)
-Is C a subclass of B?
- - Using ReflectionClass object argument: bool(true)
- - Using ReflectionObject object argument: bool(true)
- - Using string argument: bool(true)
-Is C a subclass of C?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is C a subclass of I?
- - Using ReflectionClass object argument: bool(false)
- - Using string argument: bool(false)
-Is C a subclass of X?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is X a subclass of A?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is X a subclass of B?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is X a subclass of C?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
-Is X a subclass of I?
- - Using ReflectionClass object argument: bool(true)
- - Using string argument: bool(true)
-Is X a subclass of X?
- - Using ReflectionClass object argument: bool(false)
- - Using ReflectionObject object argument: bool(false)
- - Using string argument: bool(false)
Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given in %s on line 6
NULL
-Fatal error: Uncaught exception 'ReflectionException' with message 'Class X does not exist' in %s:7
-Stack trace:
-#0 %s(7): ReflectionClass->isSubclassOf('X')
-#1 {main}
- thrown in %s on line 7
---UEXPECTF--
-Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 0 given in %s on line 5
-NULL
-
-Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given in %s on line 6
-NULL
-
Fatal error: Uncaught exception 'ReflectionException' with message 'Class X does not exist' in %s:7
Stack trace:
#0 %s(7): ReflectionClass->isSubclassOf('X')
bool(false)
bool(false)
bool(true)
---UEXPECTF--
-bool(false)
-bool(false)
-bool(false)
-bool(false)
-bool(true)
Warning: Wrong parameter count for ReflectionClass::isUserDefined() in %s on line 5
NULL
---UEXPECTF--
-Warning: Wrong parameter count for ReflectionClass::isUserDefined() in %s on line 4
-NULL
-
-Warning: Wrong parameter count for ReflectionClass::isUserDefined() in %s on line 5
-NULL
**********************************
Reflecting on property TestClass::pub
-__toString():
-string(35) "Property [ <default> public $pub ]
-"
-export():
-string(35) "Property [ <default> public $pub ]
-"
-export():
-Property [ <default> public $pub ]
-
-NULL
-getName():
-string(3) "pub"
-isPublic():
-bool(true)
-isPrivate():
-bool(false)
-isProtected():
-bool(false)
-isStatic():
-bool(false)
-getValue():
-NULL
-getValue() after a setValue():
-string(8) "NewValue"
-
-**********************************
-**********************************
-Reflecting on property TestClass::stat
-
-__toString():
-string(33) "Property [ public static $stat ]
-"
-export():
-string(33) "Property [ public static $stat ]
-"
-export():
-Property [ public static $stat ]
-
-NULL
-getName():
-string(4) "stat"
-isPublic():
-bool(true)
-isPrivate():
-bool(false)
-isProtected():
-bool(false)
-isStatic():
-bool(true)
-getValue():
-string(15) "static property"
-getValue() after a setValue():
-string(8) "NewValue"
-
-**********************************
-**********************************
-Reflecting on property TestClass::prot
-
-__toString():
-string(39) "Property [ <default> protected $prot ]
-"
-export():
-string(39) "Property [ <default> protected $prot ]
-"
-export():
-Property [ <default> protected $prot ]
-
-NULL
-getName():
-string(4) "prot"
-isPublic():
-bool(false)
-isPrivate():
-bool(false)
-isProtected():
-bool(true)
-isStatic():
-bool(false)
-
-**********************************
-**********************************
-Reflecting on property TestClass::priv
-
-__toString():
-string(37) "Property [ <default> private $priv ]
-"
-export():
-string(37) "Property [ <default> private $priv ]
-"
-export():
-Property [ <default> private $priv ]
-
-NULL
-getName():
-string(4) "priv"
-isPublic():
-bool(false)
-isPrivate():
-bool(true)
-isProtected():
-bool(false)
-isStatic():
-bool(false)
-
-**********************************
---UEXPECT--
-**********************************
-Reflecting on property TestClass::pub
-
__toString():
unicode(35) "Property [ <default> public $pub ]
"
**********************************
Reflecting on property TestClass::pub
-isDefault():
-bool(true)
-getModifiers():
-int(256)
-getDeclaringClass():
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(9) "TestClass"
-}
-getDocComment():
-bool(false)
-
-**********************************
-**********************************
-Reflecting on property TestClass::stat
-
-isDefault():
-bool(true)
-getModifiers():
-int(257)
-getDeclaringClass():
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(9) "TestClass"
-}
-getDocComment():
-bool(false)
-
-**********************************
-**********************************
-Reflecting on property TestClass::prot
-
-isDefault():
-bool(true)
-getModifiers():
-int(512)
-getDeclaringClass():
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(9) "TestClass"
-}
-getDocComment():
-string(%d) "/**
- * This property has a comment.
- */"
-
-**********************************
-**********************************
-Reflecting on property TestClass::priv
-
-isDefault():
-bool(true)
-getModifiers():
-int(1024)
-getDeclaringClass():
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(9) "TestClass"
-}
-getDocComment():
-bool(false)
-
-**********************************
---UEXPECTF--
-**********************************
-Reflecting on property TestClass::pub
-
isDefault():
bool(true)
getModifiers():
?>
--EXPECTF--
Warning: ReflectionProperty::__construct() expects exactly 2 parameters, 0 given in %s on line %d
-object(ReflectionProperty)#%d (2) {
- ["name"]=>
- string(0) ""
- ["class"]=>
- string(0) ""
-}
-
-Warning: ReflectionProperty::__construct() expects exactly 2 parameters, 1 given in %s on line %d
-object(ReflectionProperty)#%d (2) {
- ["name"]=>
- string(0) ""
- ["class"]=>
- string(0) ""
-}
-
-Warning: ReflectionProperty::__construct() expects exactly 2 parameters, 3 given in %s on line %d
-object(ReflectionProperty)#%d (2) {
- ["name"]=>
- string(0) ""
- ["class"]=>
- string(0) ""
-}
-
-Warning: Wrong parameter count for ReflectionProperty::getName() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for ReflectionProperty::isPrivate() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for ReflectionProperty::isProtected() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for ReflectionProperty::isPublic() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for ReflectionProperty::isStatic() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for ReflectionProperty::getModifiers() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for ReflectionProperty::isDefault() in %s on line %d
-NULL
---UEXPECTF--
-Warning: ReflectionProperty::__construct() expects exactly 2 parameters, 0 given in %s on line %d
object(ReflectionProperty)#%d (2) {
[u"name"]=>
unicode(0) ""
NULL
Warning: Wrong parameter count for ReflectionProperty::isDefault() in %s on line %d
-NULL
\ No newline at end of file
+NULL
?>
--EXPECTF--
-object(ReflectionClass)#%d (1) {
- ["name"]=>
- string(1) "A"
-}
-Wrong number of params:
-
-Warning: Wrong parameter count for ReflectionProperty::getDeclaringClass() in %s on line %d
---UEXPECTF--
object(ReflectionClass)#%d (1) {
[u"name"]=>
unicode(1) "A"
}
Wrong number of params:
-Warning: Wrong parameter count for ReflectionProperty::getDeclaringClass() in %s on line %d
\ No newline at end of file
+Warning: Wrong parameter count for ReflectionProperty::getDeclaringClass() in %s on line %d
?>
--EXPECTF--
----> Doc comment for A::$a:
-string(%d) "/**
- * My Doc Comment for $a
- *
- */"
-
-
----> Doc comment for A::$b:
-bool(false)
-
-
----> Doc comment for A::$c:
-bool(false)
-
-
----> Doc comment for A::$d:
-string(%d) "/**
- * My Doc Comment for $d
- */"
-
-
----> Doc comment for A::$e:
-bool(false)
-
-
----> Doc comment for A::$f:
-string(%d) "/**
- * Doc comment for $f
- */"
-
-
----> Doc comment for B::$a:
-bool(false)
-
-
----> Doc comment for B::$b:
-string(%d) "/** A doc comment for $b */"
-
-
----> Doc comment for B::$c:
-bool(false)
-
-
----> Doc comment for B::$e:
-string(%d) "/** A doc comment for $e */"
-
-
----> Doc comment for B::$d:
-string(%d) "/**
- * My Doc Comment for $d
- */"
-
-
----> Doc comment for B::$f:
-string(%d) "/**
- * Doc comment for $f
- */"
---UEXPECT--
---> Doc comment for A::$a:
unicode(47) "/**
* My Doc Comment for $a
Instance without property:
-Static property / too many args:
-string(15) "static property"
-
-Static property / wrong type of arg:
-string(15) "static property"
-
-Protected property:
-Cannot access non-public member TestClass::prot
-
-Instance without property:
-NULL
---UEXPECTF--
-Too few args:
-
-Warning: ReflectionProperty::getValue() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
-Too many args:
-
-Warning: ReflectionProperty::getValue() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-
-Wrong type of arg:
-
-Warning: ReflectionProperty::getValue() expects parameter 1 to be object, boolean given in %s on line %d
-NULL
-
-Instance without property:
-
Static property / too many args:
unicode(15) "static property"
Instance without property:
NULL
-
\ No newline at end of file
+
Warning: ReflectionProperty::setValue() expects exactly 2 parameters, 3 given in %s on line %d
NULL
-Static property / too few args:
-NULL
-string(11) "A new value"
-
-Warning: ReflectionProperty::setValue() expects exactly 2 parameters, 0 given in %s on line %d
-NULL
-string(11) "A new value"
-
-Static property / wrong type of arg:
-NULL
-string(17) "Another new value"
-
-Protected property:
-Cannot access non-public member TestClass::prot
-
-Instance without property:
-NULL
-string(8) "NewValue"
---UEXPECTF--
-Too few args:
-
-Warning: ReflectionProperty::setValue() expects exactly 2 parameters, 0 given in %s on line %d
-NULL
-
-Warning: ReflectionProperty::setValue() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-
-Too many args:
-
-Warning: ReflectionProperty::setValue() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
-
-Wrong type of arg:
-
-Warning: ReflectionProperty::setValue() expects parameter 1 to be object, boolean given in %s on line %d
-NULL
-
-Static property / too many args:
-
-Warning: ReflectionProperty::setValue() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
-
Static property / too few args:
NULL
unicode(11) "A new value"
Instance without property:
NULL
unicode(8) "NewValue"
-
\ No newline at end of file
+