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

1.1       misho       1: --TEST--
                      2: Testing method name case
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class Foo {
                      7:        public function __call($a, $b) {
                      8:                print "nonstatic\n";
                      9:                var_dump($a);
                     10:        }
                     11:        static public function __callStatic($a, $b) {
                     12:                print "static\n";
                     13:                var_dump($a);
                     14:        }
                     15:        public function test() {
                     16:                $this->fOoBaR();
                     17:                self::foOBAr();
                     18:                $this::fOOBAr();
                     19:        }
                     20: }
                     21: 
                     22: $a = new Foo;
                     23: $a->test();
                     24: $a::bAr();
                     25: foo::BAZ();
                     26: 
                     27: ?>
                     28: --EXPECT--
                     29: nonstatic
                     30: string(6) "fOoBaR"
                     31: nonstatic
                     32: string(6) "foOBAr"
                     33: nonstatic
                     34: string(6) "fOOBAr"
                     35: static
                     36: string(3) "bAr"
                     37: static
                     38: string(3) "BAZ"

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