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 public function mockHookCallAll(string $name, &$capture)
22 if (!isset($this->hookMock)) {
23 $this->hookMock = \Mockery::mock('alias:' . Hook::class);
27 ->shouldReceive('callAll')
28 ->withArgs([$name, \Mockery::capture($capture)]);