summaryrefslogtreecommitdiff
path: root/ext/standard/tests/aggregation/aggregate.lib
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2003-06-29 18:26:24 +0000
committerSVN Migration <svn@php.net>2003-06-29 18:26:24 +0000
commit54715b27657f09025ca2d59b6caae0901fcaed3c (patch)
treea30b6db1ed69a8f48fd70712cff673d2fca9b0a4 /ext/standard/tests/aggregation/aggregate.lib
parent082a1489d20686763496ae09b128c2cdfa9e5637 (diff)
downloadphp-git-php-5.0.0b1.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_0_0b1'.php-5.0.0b1
Diffstat (limited to 'ext/standard/tests/aggregation/aggregate.lib')
-rw-r--r--ext/standard/tests/aggregation/aggregate.lib65
1 files changed, 65 insertions, 0 deletions
diff --git a/ext/standard/tests/aggregation/aggregate.lib b/ext/standard/tests/aggregation/aggregate.lib
new file mode 100644
index 0000000000..3799285f75
--- /dev/null
+++ b/ext/standard/tests/aggregation/aggregate.lib
@@ -0,0 +1,65 @@
+<?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";
+ }
+}
+
+?>