diff options
Diffstat (limited to 'Zend/tests/magic_methods_009.phpt')
-rw-r--r-- | Zend/tests/magic_methods_009.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/magic_methods_009.phpt b/Zend/tests/magic_methods_009.phpt new file mode 100644 index 0000000000..aac3d4c6ca --- /dev/null +++ b/Zend/tests/magic_methods_009.phpt @@ -0,0 +1,13 @@ +--TEST-- +Testing __callstatic declaration with wrong modifier +--FILE-- +<?php + +class a { + static protected function __callstatic($a, $b) { + } +} + +?> +--EXPECTF-- +Fatal error: The magic method __callStatic() must have public visibility and be static in %s on line %d |