xref: /PHP-5.4/Zend/tests/magic_methods_007.phpt (revision 2462fce2)
1--TEST--
2Testing __set() declaration in abstract class with wrong modifier
3--FILE--
4<?php
5
6abstract class b {
7	abstract protected function __set($a);
8}
9
10?>
11--EXPECTF--
12Warning: The magic method __set() must have public visibility and cannot be static in %s on line %d
13
14Fatal error: Method b::__set() must take exactly 2 arguments in %s on line %d
15