3 namespace Friendica\Test\Util;
5 use Mockery\MockInterface;
7 trait DateTimeFormatMockTrait
10 * @var MockInterface The mocking interface of Friendica\Database\DBA
14 public function mockUtcNow($time, $times = null)
16 if (!isset($this->dtfMock)) {
17 $this->dtfMock = \Mockery::mock('alias:Friendica\Util\DateTimeFormat');
21 ->shouldReceive('utcNow')
26 public function mockUtc($input, $time, $times = null)
28 if (!isset($this->dtfMock)) {
29 $this->dtfMock = \Mockery::mock('alias:Friendica\Util\DateTimeFormat');
33 ->shouldReceive('utc')