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