Annotation of embedaddon/php/Zend/tests/magic_methods_010.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing __toString() declaration with wrong modifier
3: --FILE--
4: <?php
5:
6: class a {
7: static protected function __toString($a, $b) {
8: }
9: }
10:
11: ?>
12: --EXPECTF--
13: Warning: The magic method __toString() must have public visibility and cannot be static in %s on line %d
14:
15: Fatal error: Method a::__tostring() cannot take arguments in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>