diff options
Diffstat (limited to 'Zend/tests/constructor_args.phpt')
-rw-r--r-- | Zend/tests/constructor_args.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/tests/constructor_args.phpt b/Zend/tests/constructor_args.phpt new file mode 100644 index 0000000..8056874 --- /dev/null +++ b/Zend/tests/constructor_args.phpt @@ -0,0 +1,20 @@ +--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! |