php-src/tests/classes/interface_method_private.phpt
2004-10-20 22:55:57 +00:00

16 lines
336 B
PHP

--TEST--
ZE2 An interface method cannot be private
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
interface if_a {
abstract private function err();
}
?>
--EXPECTF--
Fatal error: Access type for interface method if_a::err() must be omitted in %s on line %d