diff options
Diffstat (limited to 'ext/standard/tests/aggregation/aggregate_methods.phpt')
-rw-r--r-- | ext/standard/tests/aggregation/aggregate_methods.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/standard/tests/aggregation/aggregate_methods.phpt b/ext/standard/tests/aggregation/aggregate_methods.phpt new file mode 100644 index 0000000000..b612881c59 --- /dev/null +++ b/ext/standard/tests/aggregation/aggregate_methods.phpt @@ -0,0 +1,25 @@ +--TEST-- +aggregating all methods +--POST-- +--GET-- +--FILE-- +<?php +include "ext/standard/tests/aggregation/aggregate.lib"; + +$obj = new simple(); +aggregate_methods($obj, 'mixin'); +$obj->mix_it(); +print $obj->simple_prop."\n"; +print implode(',', get_class_methods($obj))."\n"; +print implode(',', array_keys(get_object_vars($obj)))."\n"; +aggregate_methods($obj, 'moby'); +$obj->mix_it(); + +?> +--EXPECT-- +I'm alive! +mixing +100 +simple,mix_it +simple_prop +mixing |