Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 213ebd9

Browse files
committed
Merge branch 'hotfix/3130'
Close zendframework/zendframework#3130

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/CallbackTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testCanAcceptContextWithoutOptions()
8686
{
8787
$value = 'bar';
8888
$context = array('foo' => 'bar', 'bar' => 'baz');
89-
$validator = new Callback(function($v, $c) use ($value, $context) {
89+
$validator = new Callback(function ($v, $c) use ($value, $context) {
9090
return (($value == $v) && ($context == $c));
9191
});
9292
$this->assertTrue($validator->isValid($value, $context));
@@ -97,7 +97,7 @@ public function testCanAcceptContextWithOptions()
9797
$value = 'bar';
9898
$context = array('foo' => 'bar', 'bar' => 'baz');
9999
$options = array('baz' => 'bat');
100-
$validator = new Callback(function($v, $c, $baz) use ($value, $context, $options) {
100+
$validator = new Callback(function ($v, $c, $baz) use ($value, $context, $options) {
101101
return (($value == $v) && ($context == $c) && ($options['baz'] == $baz));
102102
});
103103
$validator->setCallbackOptions($options);

0 commit comments

Comments
 (0)