summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_methods_004.phpt
blob: c75e454395020f98f0d4fa227a6deef8f58857c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Testing __unset() with protected visibility
--FILE--
<?php

class foo {	
	protected function __unset($a) {
		print "unset\n";
	}
}

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