php-src/Zend/tests/closure_invoke_case_insensitive.phpt

17 lines
166 B
Plaintext
Raw Normal View History

--TEST--
Closure::__invoke() is case insensitive
--FILE--
<?php
$inc = function(&$n) {
$n++;
};
$n = 1;
$inc->__INVOKE($n);
var_dump($n);
?>
--EXPECT--
int(2)