Annotation of embedaddon/php/Zend/tests/call_static_006.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Testing __callStatic
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: class foo {
        !             7:        public function aa() {
        !             8:                print "ok\n";
        !             9:        }
        !            10:        static function __callstatic($a, $b) {
        !            11:                var_dump($a);
        !            12:        }
        !            13: }
        !            14: 
        !            15: foo::aa();
        !            16: 
        !            17: $b = 'AA';
        !            18: foo::$b();
        !            19: 
        !            20: foo::__construct();
        !            21: 
        !            22: ?>
        !            23: --EXPECTF--
        !            24: Strict Standards: Non-static method foo::aa() should not be called statically in %s on line %d
        !            25: ok
        !            26: 
        !            27: Strict Standards: Non-static method foo::aa() should not be called statically in %s on line %d
        !            28: ok
        !            29: 
        !            30: Fatal error: Cannot call constructor in %s on line %d

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