diff options
Diffstat (limited to 'Zend/tests/magic_methods_007.phpt')
-rw-r--r-- | Zend/tests/magic_methods_007.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/magic_methods_007.phpt b/Zend/tests/magic_methods_007.phpt new file mode 100644 index 0000000..0630c63 --- /dev/null +++ b/Zend/tests/magic_methods_007.phpt @@ -0,0 +1,14 @@ +--TEST-- +Testing __set() declaration in abstract class with wrong modifier +--FILE-- +<?php + +abstract class b { + abstract protected function __set($a); +} + +?> +--EXPECTF-- +Warning: The magic method __set() must have public visibility and cannot be static in %s on line %d + +Fatal error: Method b::__set() must take exactly 2 arguments in %s on line %d |