php-src/Zend/tests/magic_methods_004.phpt
2018-10-14 19:45:12 +02:00

15 lines
257 B
PHP

--TEST--
Testing __unset() with protected visibility
--FILE--
<?php
class foo {
protected function __unset($a) {
print "unset\n";
}
}
?>
--EXPECTF--
Warning: The magic method __unset() must have public visibility and cannot be static in %s on line %d