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

class fail {
	abstract final function show();
}

echo "Done\n"; // Shouldn't be displayed
?>
--EXPECTF--

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