summaryrefslogtreecommitdiff
path: root/ext/standard/tests/aggregation/aggregate_methods_by_list.phpt
blob: 312a57d1b2710e443c0872719101a6fad30ee350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
aggregating methods specified in the list
--POST--
--GET--
--FILE--
<?php
include "ext/standard/tests/aggregation/aggregate.lib";

$obj = new simple();
aggregate_methods_by_list($obj, 'helper', array('just_another_method'));
print implode(',', get_class_methods($obj))."\n";
$obj2 = new simple();
aggregate_methods_by_list($obj2, 'helper', array('just_another_method'), true);
print implode(',', get_class_methods($obj2))."\n";
$obj->just_another_method();
?>
--EXPECT--
I'm alive!
simple,just_another_method
I'm alive!
simple,do_this,do_that
yep, that's me