mirror of
https://github.com/friendica/friendica
synced 2024-11-10 00:23:00 +00:00
Again
This commit is contained in:
parent
9ce43ad21d
commit
e53289d3f3
1 changed files with 4 additions and 4 deletions
|
@ -59,9 +59,9 @@ class ProfilerLoggerTest extends MockedTest
|
|||
$logger = new ProfilerLogger($this->logger, $this->profiler);
|
||||
|
||||
$this->logger->shouldReceive($function)->with($message, $context)->once();
|
||||
$this->profiler->shouldReceive('startRecording');
|
||||
$this->profiler->shouldReceive('startRecording')->with(\Mockery::any(), 'file')->once();
|
||||
$this->profiler->shouldReceive('stopRecording');
|
||||
$this->profiler->shouldReceive('saveTimestamp')->with(\Mockery::any(), 'file')->once();
|
||||
$this->profiler->shouldReceive('saveTimestamp');
|
||||
$logger->$function($message, $context);
|
||||
}
|
||||
|
||||
|
@ -74,9 +74,9 @@ class ProfilerLoggerTest extends MockedTest
|
|||
$logger = new ProfilerLogger($this->logger, $this->profiler);
|
||||
|
||||
$this->logger->shouldReceive('log')->with(LogLevel::WARNING, 'test', ['a' => 'context'])->once();
|
||||
$this->profiler->shouldReceive('startRecording');
|
||||
$this->profiler->shouldReceive('startRecording')->with(\Mockery::any(), 'file')->once();
|
||||
$this->profiler->shouldReceive('stopRecording');
|
||||
$this->profiler->shouldReceive('saveTimestamp')->with(\Mockery::any(), 'file')->once();
|
||||
$this->profiler->shouldReceive('saveTimestamp');
|
||||
|
||||
$logger->log(LogLevel::WARNING, 'test', ['a' => 'context']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue