xref: /PHP-8.1/Zend/tests/magic_methods_004.phpt (revision 7ce8c5ad)
1--TEST--
2Testing __unset() with protected visibility
3--FILE--
4<?php
5
6class foo {
7    protected function __unset($a) {
8        print "unset\n";
9    }
10}
11
12?>
13--EXPECTF--
14Warning: The magic method foo::__unset() must have public visibility in %s on line %d
15