php-src/Zend/tests/magic_methods_002.phpt
2020-04-27 16:32:00 +02:00

15 lines
247 B
PHP

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