summaryrefslogtreecommitdiff
path: root/Zend/tests/bug51421.phpt
blob: f6daf1eae79e60df8b5c3028e472c9e92d9e50b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #51421 (Abstract __construct constructor argument list not enforced)
--FILE--
<?php

class ExampleClass {}

abstract class TestInterface {
    abstract public function __construct(ExampleClass $var);
}

class Test extends TestInterface {
    public function __construct() {}
}

?>
--EXPECTF--
Fatal error: Declaration of Test::__construct() must be compatible with TestInterface::__construct(ExampleClass $var) in %s on line %d