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