1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/tests/classes/interface_method_private.phpt
Andi Gutmans 086e951387 - Fix test
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