summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_methods_010.phpt
blob: d50b357242c11bd744d77ae28b506bf81fc0d52f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Testing __toString() declaration with wrong modifier
--FILE--
<?php

class a {
	static protected function __toString($a, $b) {
	}
}

?>
--EXPECTF--
Warning: The magic method __toString() must have public visibility and can not be static in %s on line %d

Fatal error: Method a::__tostring() cannot take arguments in %s on line %d