xref: /PHP-7.2/Zend/tests/errmsg_023.phpt (revision 17ccbeec)
1--TEST--
2errmsg: access level must be the same or weaker
3--FILE--
4<?php
5
6class test1 {
7	protected $var;
8}
9
10class test extends test1 {
11	private $var;
12}
13
14echo "Done\n";
15?>
16--EXPECTF--
17Fatal error: Access level to test::$var must be protected (as in class test1) or weaker in %s on line %d
18