php-src/Zend/tests/magic_methods/constructor_args.phpt
DanielEScherzer a50f82bebf
Zend/tests: organize some tests with sub directories (6) (#17807)
Move more tests into existing directories

Work towards GH-15631
2025-02-15 14:55:07 +00:00

20 lines
356 B
PHP

--TEST--
Different numbers of arguments in __construct()
--FILE--
<?php
interface foobar {
function __construct();
}
abstract class bar implements foobar {
public function __construct($x = 1) {
}
}
final class foo extends bar implements foobar {
public function __construct($x = 1, $y = 2) {
}
}
new foo;
print "ok!";
?>
--EXPECT--
ok!