diff options
Diffstat (limited to 'ext/standard/tests/aggregation/deaggregate.phpt')
-rw-r--r-- | ext/standard/tests/aggregation/deaggregate.phpt | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/ext/standard/tests/aggregation/deaggregate.phpt b/ext/standard/tests/aggregation/deaggregate.phpt new file mode 100644 index 0000000000..5c551d75bd --- /dev/null +++ b/ext/standard/tests/aggregation/deaggregate.phpt @@ -0,0 +1,72 @@ +--TEST-- +deaggreating +--POST-- +--GET-- +--FILE-- +<?php +include "ext/standard/tests/aggregation/aggregate.lib"; + +$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) |