summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_methods_010.phpt
blob: 06d46dbd2872ac6150dda988a77a249582237aff (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 cannot be static in %s on line %d

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