1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/tests/classes/interface_optional_arg_003.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

18 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();
?>
--EXPECT--
int(2)