mirror of
https://github.com/php/php-src.git
synced 2024-10-11 19:42:32 +00:00
73 lines
1.2 KiB
Plaintext
73 lines
1.2 KiB
Plaintext
|
--TEST--
|
||
|
deaggreating
|
||
|
--POST--
|
||
|
--GET--
|
||
|
--FILE--
|
||
|
<?php
|
||
|
include "./aggregate.lib.php";
|
||
|
|
||
|
$obj = new simple();
|
||
|
aggregate($obj, 'helper');
|
||
|
aggregate($obj, 'mixin');
|
||
|
print_r(aggregation_info($obj));
|
||
|
deaggregate($obj, 'helper');
|
||
|
print_r(aggregation_info($obj));
|
||
|
deaggregate($obj);
|
||
|
var_dump(aggregation_info($obj));
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
I'm alive!
|
||
|
Array
|
||
|
(
|
||
|
[helper] => Array
|
||
|
(
|
||
|
[methods] => Array
|
||
|
(
|
||
|
[0] => do_this
|
||
|
[1] => do_that
|
||
|
[2] => just_another_method
|
||
|
)
|
||
|
|
||
|
[properties] => Array
|
||
|
(
|
||
|
[0] => my_prop
|
||
|
[1] => your_prop
|
||
|
[2] => our_prop
|
||
|
)
|
||
|
|
||
|
)
|
||
|
|
||
|
[mixin] => Array
|
||
|
(
|
||
|
[methods] => Array
|
||
|
(
|
||
|
[0] => mix_it
|
||
|
)
|
||
|
|
||
|
[properties] => Array
|
||
|
(
|
||
|
[0] => mix
|
||
|
)
|
||
|
|
||
|
)
|
||
|
|
||
|
)
|
||
|
Array
|
||
|
(
|
||
|
[mixin] => Array
|
||
|
(
|
||
|
[methods] => Array
|
||
|
(
|
||
|
[0] => mix_it
|
||
|
)
|
||
|
|
||
|
[properties] => Array
|
||
|
(
|
||
|
[0] => mix
|
||
|
)
|
||
|
|
||
|
)
|
||
|
|
||
|
)
|
||
|
bool(false)
|