Annotation of embedaddon/php/Zend/tests/022.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Implementating abstracting methods and optional parameters
3: --FILE--
4: <?php
5:
6: abstract class Base
7: {
8: abstract function someMethod($param);
9: }
10:
11: class Ext extends Base
12: {
13: function someMethod($param = "default")
14: {
15: echo $param, "\n";
16: }
17: }
18:
19: $a = new Ext();
20: $a->someMethod("foo");
21: $a->someMethod();
22: --EXPECT--
23: foo
24: default
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>