php-src/Zend/tests/ns_073.phpt

20 lines
232 B
Plaintext
Raw Normal View History

2008-11-10 11:39:35 +00:00
--TEST--
Testing type-hinted lambda parameter inside namespace
--FILE--
<?php
namespace foo;
$x = function (\stdclass $x = NULL) {
var_dump($x);
};
$x(NULL);
$x(new \stdclass);
?>
--EXPECTF--
NULL
object(stdClass)#%d (0) {
}