xref: /PHP-5.4/tests/classes/final_ctor3.phpt (revision 0ee45c47)
1--TEST--
2Ensure implicit final inherited old-style constructor cannot be overridden.
3--FILE--
4<?php
5  class A {
6      final function A() { }
7  }
8  class B extends A {
9      function A() { }
10  }
11?>
12--EXPECTF--
13Fatal error: Cannot override final method A::A() in %s on line %d
14