diff options
Diffstat (limited to 'Zend/tests/magic_methods_005.phpt')
-rw-r--r-- | Zend/tests/magic_methods_005.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/magic_methods_005.phpt b/Zend/tests/magic_methods_005.phpt new file mode 100644 index 0000000..76ab300 --- /dev/null +++ b/Zend/tests/magic_methods_005.phpt @@ -0,0 +1,12 @@ +--TEST-- +Testing __call() declaration in interface with wrong modifier +--FILE-- +<?php + +interface a { + static function __call($a, $b); +} + +?> +--EXPECTF-- +Warning: The magic method __call() must have public visibility and cannot be static in %s on line %d |