summaryrefslogtreecommitdiff
path: root/tests/classes/interface_method_final.phpt
blob: 01e599c5b9e8fb53aae9f0c8647324a7de935dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
ZE2 An interface method cannot be final
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php

class if_a {
	abstract final function err();
}

?>
--EXPECTF--

Fatal error: Cannot use the final modifier on an abstract class member in %s on line %d