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

Commit

Permalink
Merge branch 'hotfix/3130'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/CallbackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function testCanAcceptContextWithoutOptions()
{
$value = 'bar';
$context = array('foo' => 'bar', 'bar' => 'baz');
$validator = new Callback(function($v, $c) use ($value, $context) {
$validator = new Callback(function ($v, $c) use ($value, $context) {
return (($value == $v) && ($context == $c));
});
$this->assertTrue($validator->isValid($value, $context));
Expand All @@ -97,7 +97,7 @@ public function testCanAcceptContextWithOptions()
$value = 'bar';
$context = array('foo' => 'bar', 'bar' => 'baz');
$options = array('baz' => 'bat');
$validator = new Callback(function($v, $c, $baz) use ($value, $context, $options) {
$validator = new Callback(function ($v, $c, $baz) use ($value, $context, $options) {
return (($value == $v) && ($context == $c) && ($options['baz'] == $baz));
});
$validator->setCallbackOptions($options);
Expand Down

0 comments on commit 213ebd9

Please sign in to comment.