php-src/tests/classes/final_ctor3.phpt
Antony Dovgal 0ee45c4711 fix tests
2008-03-17 14:59:23 +00:00

14 lines
275 B
PHP

--TEST--
Ensure implicit final inherited old-style constructor cannot be overridden.
--FILE--
<?php
class A {
final function A() { }
}
class B extends A {
function A() { }
}
?>
--EXPECTF--
Fatal error: Cannot override final method A::A() in %s on line %d