summaryrefslogtreecommitdiff
path: root/Zend/tests/bug51421.phpt
blob: bc1758c300802fe3877266b2869b83904c94f79c (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