xref: /PHP-8.1/Zend/tests/errmsg_002.phpt (revision f8d79582)
1--TEST--
2errmsg: function cannot be declared private
3--FILE--
4<?php
5
6abstract class test {
7    abstract private function foo() {
8    }
9}
10
11echo "Done\n";
12?>
13--EXPECTF--
14Fatal error: Abstract function test::foo() cannot be declared private in %s on line %d
15