summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_methods_008.phpt
blob: 3ddeb61d24e4d024b3f55fab811aded66df132c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Testing __set implementation with wrong declaration
--FILE--
<?php

abstract class b {
    abstract function __set($a, $b);
}

class a extends b {
    private function __set($a, $b) {
    }
}

?>
--EXPECTF--
Warning: The magic method a::__set() must have public visibility in %s on line %d

Fatal error: Access level to a::__set() must be public (as in class b) in %s on line 8