diff options
Diffstat (limited to 'Zend/tests/magic_methods_002.phpt')
-rw-r--r-- | Zend/tests/magic_methods_002.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/magic_methods_002.phpt b/Zend/tests/magic_methods_002.phpt new file mode 100644 index 0000000..fe0a4dc --- /dev/null +++ b/Zend/tests/magic_methods_002.phpt @@ -0,0 +1,14 @@ +--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 |