mirror of
https://github.com/php/php-src.git
synced 2024-10-15 05:22:48 +00:00
26 lines
452 B
PHP
26 lines
452 B
PHP
--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
|