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

$obj = new simple();
aggregate_properties_by_list($obj, 'helper', array('my_prop', 'our_prop'));
print implode(',', array_keys(get_object_vars($obj)))."\n";
$obj2 = new simple();
aggregate_properties_by_list($obj2, 'helper', array('my_prop'), true);
print implode(',', array_keys(get_object_vars($obj2)))."\n";
?>
--EXPECT--
I'm alive!
simple_prop,my_prop,our_prop
I'm alive!
simple_prop,your_prop,our_prop