php-src/tests/classes/interface_optional_arg_003.phpt
2009-06-17 10:38:25 +00:00

17 lines
264 B
PHP

--TEST--
default argument value in and in implementing class with interface in included file
--FILE--
<?php
include 'interface_optional_arg_003.inc';
class C implements I {
function f($a = 2) {
var_dump($a);
}
}
$c = new C;
$c->f();
?>
--EXPECTF--
int(2)