]> git.mxchange.org Git - friendica.git/commitdiff
And again
authorMichael <heluecht@pirati.ca>
Tue, 27 Jul 2021 06:28:56 +0000 (06:28 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 27 Jul 2021 06:28:56 +0000 (06:28 +0000)
tests/src/Util/Logger/ProfilerLoggerTest.php

index 2dbb604f96aac35a469629b7ba7426b25ca7f1d2..7b624461427328937df54e37439829cd121e96f1 100644 (file)
@@ -59,7 +59,7 @@ class ProfilerLoggerTest extends MockedTest
                $logger = new ProfilerLogger($this->logger, $this->profiler);
 
                $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('saveTimestamp');
                $logger->$function($message, $context);
@@ -74,7 +74,7 @@ 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')->with(\Mockery::any(), 'file')->once();
+               $this->profiler->shouldReceive('startRecording')->with('file')->once();
                $this->profiler->shouldReceive('stopRecording');
                $this->profiler->shouldReceive('saveTimestamp');