blob: c229a85b50794a6f94f14409343115660fb28676 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--TEST--
aggregating methods matching regular expression
--POST--
--GET--
--FILE--
<?php
include "./aggregate.lib.php";
$obj = new simple();
aggregate_methods_by_regexp($obj, 'helper', '/^do/');
print implode(',', get_class_methods($obj))."\n";
$obj2 = new simple();
aggregate_methods_by_regexp($obj2, 'helper', '/^do/', true);
print implode(',', get_class_methods($obj2))."\n";
?>
--EXPECT--
I'm alive!
simple,do_this,do_that
I'm alive!
simple,just_another_method
|