Annotation of embedaddon/php/Zend/tests/call_static_007.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Testing __call and __callstatic
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class a {
                      7:        public function __call($a, $b) {
                      8:                print "__call: ". $a ."\n";
                      9:        }
                     10:        static public function __callStatic($a, $b) {
                     11:                print "__callstatic: ". $a ."\n";
                     12:        }
                     13:        public function baz() {
                     14:                self::Bar();
                     15:        }
                     16: }
                     17: 
                     18: 
                     19: $a = new a;
                     20: 
                     21: $b = 'Test';
                     22: $a::$b();
                     23: $a->$b();
                     24: 
                     25: $a->baz();
                     26: 
                     27: a::Foo();
                     28: 
                     29: ?>
                     30: --EXPECT--
                     31: __callstatic: Test
                     32: __call: Test
                     33: __call: Bar
                     34: __callstatic: Foo

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>