+++ /dev/null
-<?php
-
-class simple {
- var $simple_prop = 100;
-
- function simple()
- {
- print "I'm alive!\n";
- }
-}
-
-class helper {
- var $my_prop = 5;
- var $your_prop = array('init' => PHP_VERSION);
- var $our_prop = '****';
- var $_priv_prop = null;
-
- function helper()
- {
- print "just trying to help\n";
- }
-
- function do_this()
- {
- print "I'm helping!\n";
- }
-
- function do_that()
- {
- print "I'm aggregating!\n";
- }
-
- function just_another_method()
- {
- print "yep, that's me\n";
- }
-
- function _private()
- {
- print "Don't touch me!\n";
- }
-
- function __wakeup()
- {
- }
-}
-
-class mixin {
- var $simple_prop = true;
- var $mix = true;
-
- function mix_it()
- {
- print "mixing\n";
- }
-}
-
-class moby {
- function mix_it()
- {
- print "I'm redundant!\n";
- }
-}
-
-?>
--GET--
--FILE--
<?php
-include "./ext/standard/tests/aggregation/aggregate.lib.php";
+include "./ext/standard/tests/aggregation/aggregate.lib";
$obj = new simple();
aggregate($obj, 'helper');
--GET--
--FILE--
<?php
-include "./ext/standard/tests/aggregation/aggregate.lib.php";
+include "./ext/standard/tests/aggregation/aggregate.lib";
$obj = new simple();
aggregate_methods($obj, 'mixin');
--GET--
--FILE--
<?php
-include "./ext/standard/tests/aggregation/aggregate.lib.php";
+include "./ext/standard/tests/aggregation/aggregate.lib";
$obj = new simple();
aggregate_methods_by_list($obj, 'helper', array('just_another_method'));
--GET--
--FILE--
<?php
-include "./ext/standard/tests/aggregation/aggregate.lib.php";
+include "./ext/standard/tests/aggregation/aggregate.lib";
$obj = new simple();
aggregate_methods_by_regexp($obj, 'helper', '/^do/');
--GET--
--FILE--
<?php
-include "./ext/standard/tests/aggregation/aggregate.lib.php";
+include "./ext/standard/tests/aggregation/aggregate.lib";
$obj = new simple();
aggregate_properties($obj, 'mixin');
--GET--
--FILE--
<?php
-include "./ext/standard/tests/aggregation/aggregate.lib.php";
+include "./ext/standard/tests/aggregation/aggregate.lib";
$obj = new simple();
aggregate_properties_by_list($obj, 'helper', array('my_prop', 'our_prop'));
--GET--
--FILE--
<?php
-include "./ext/standard/tests/aggregation/aggregate.lib.php";
+include "./ext/standard/tests/aggregation/aggregate.lib";
$obj = new simple();
aggregate_properties_by_regexp($obj, 'helper', '/^my/');
--GET--
--FILE--
<?php
-include "./ext/standard/tests/aggregation/aggregate.lib.php";
+include "./ext/standard/tests/aggregation/aggregate.lib";
$obj = new simple();
aggregate($obj, 'mixin');
--GET--
--FILE--
<?php
-include "./ext/standard/tests/aggregation/aggregate.lib.php";
+include "./ext/standard/tests/aggregation/aggregate.lib";
$obj = new simple();
aggregate($obj, 'helper');