3 namespace Friendica\Test\Util;
5 use Friendica\Core\Hook;
6 use Mockery\MockInterface;
12 * @var MockInterface The Interface for mocking a renderer
17 * Mocking a method 'Hook::call()' call
20 * @param mixed $capture
22 public function mockHookCallAll(string $name, &$capture)
24 if (!isset($this->hookMock)) {
25 $this->hookMock = \Mockery::mock('alias:' . Hook::class);
29 ->shouldReceive('callAll')
30 ->withArgs([$name, \Mockery::capture($capture)]);