summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_invoke_case_insensitive.phpt
blob: d41d58a747c3af462c2860686edbdf0115eff13f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Closure::__invoke() is case insensitive
--FILE--
<?php

$inc = function(&$n) {
    $n++;
};

$n = 1;
$inc->__INVOKE($n);
var_dump($n);

?>
--EXPECT--
int(2)