Return to interface_optional_arg_003.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes |
1.1 misho 1: --TEST-- 2: default argument value in and in implementing class with interface in included file 3: --FILE-- 4: <?php 5: include 'interface_optional_arg_003.inc'; 6: 7: class C implements I { 8: function f($a = 2) { 9: var_dump($a); 10: } 11: } 12: 13: $c = new C; 14: $c->f(); 15: ?> 16: --EXPECTF-- 17: int(2)