Skip to content

Commit 94bc867

Browse files
committed
Fixed invalid use of the mock interface... 2
1 parent d2f8ac5 commit 94bc867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/PrefixedSimpleCacheTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ private function getCacheStub($method, $arguments, $result)
3434
->setMethods(['get', 'set', 'delete', 'clear', 'getMultiple', 'setMultiple', 'deleteMultiple', 'has'])
3535
->getMock();
3636

37-
$stub->expects($this->once())->method($method)->willReturn($result);
38-
call_user_func_array([$stub, 'with'], $arguments);
37+
$invocation = $stub->expects($this->once())->method($method);
38+
call_user_func_array([$invocation->willReturn($result), 'with'], $arguments);
3939

4040
return $stub;
4141
}

0 commit comments

Comments
 (0)