1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00
Files
archived-php-src/tests/classes/interface_optional_arg_003.phpt
2014-12-21 13:23:02 +00:00

18 lines
265 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)