php-src/Zend/tests/magic_methods_003.phpt
2018-10-14 12:07:20 -03:00

15 lines
246 B
PHP

--TEST--
Testing __unset declaring as static
--FILE--
<?php
class foo {
static 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