php-src/Zend/tests/magic_methods_002.phpt

15 lines
252 B
PHP

--TEST--
Testing __unset with private visibility
--FILE--
<?php
class foo {
private 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