Skip to content

Commit

Permalink
Updated test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Feb 27, 2014
1 parent e5b127a commit e06fae8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ext/tests/issue-1935.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,12 @@ assert($registry->{1.0} === 2);
assert($registry[1] === 2);
assert($registry[1.0] === 2);
assert($registry['1'] === 2);

$registry->callback = function() { return 'string'; };
assert($registry->callback() === 'string');

$registry->callback = function($param) { return 'Hello, ' . $param; };
assert($registry->callback('world') === 'Hello, world');
assert($registry->__call('callback', array('world')) === 'Hello, world');
?>
--EXPECT--

0 comments on commit e06fae8

Please sign in to comment.