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

1.1       misho       1: --TEST--
                      2: Testing __set() declaration in abstract class with wrong modifier
                      3: --FILE--
                      4: <?php
                      5: 
                      6: abstract class b {
                      7:        abstract protected function __set($a);
                      8: }
                      9: 
                     10: ?>
                     11: --EXPECTF--
                     12: Warning: The magic method __set() must have public visibility and cannot be static in %s on line %d
                     13: 
                     14: Fatal error: Method b::__set() must take exactly 2 arguments in %s on line %d

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