Annotation of embedaddon/php/Zend/tests/magic_methods_008.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing __set implementation with wrong declaration
3: --FILE--
4: <?php
5:
6: abstract class b {
7: abstract function __set($a, $b);
8: }
9:
10: class a extends b {
11: private function __set($a, $b) {
12: }
13: }
14:
15: ?>
16: --EXPECTF--
17: Warning: The magic method __set() must have public visibility and cannot be static in %s on line %d
18:
19: Fatal error: Access level to a::__set() must be public (as in class b) in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>