xref: /PHP-7.0/Zend/tests/constructor_args.phpt (revision 2569b593)
1--TEST--
2Different numbers of arguments in __construct()
3--FILE--
4<?php
5interface foobar {
6    function __construct();
7}
8abstract class bar implements foobar {
9    public function __construct($x = 1) {
10    }
11}
12final class foo extends bar implements foobar {
13    public function __construct($x = 1, $y = 2) {
14    }
15}
16new foo;
17print "ok!";
18?>
19--EXPECT--
20ok!
21