diff options
author | SVN Migration <svn@php.net> | 2003-06-29 18:26:24 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2003-06-29 18:26:24 +0000 |
commit | 54715b27657f09025ca2d59b6caae0901fcaed3c (patch) | |
tree | a30b6db1ed69a8f48fd70712cff673d2fca9b0a4 /ext/standard/tests/aggregation/aggregate_methods.phpt | |
parent | 082a1489d20686763496ae09b128c2cdfa9e5637 (diff) | |
download | php-git-php-5.0.0b1.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php_5_0_0b1'.php-5.0.0b1
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 |