mirror of
https://github.com/friendica/friendica
synced 2025-01-22 06:59:51 +00:00
And again
This commit is contained in:
parent
3a230bedd5
commit
dd4f270b11
1 changed files with 2 additions and 4 deletions
|
@ -250,12 +250,11 @@ class ProfilerTest extends MockedTest
|
||||||
->once();
|
->once();
|
||||||
|
|
||||||
$profiler = new Profiler($configCache);
|
$profiler = new Profiler($configCache);
|
||||||
$profiler->startRecording('network');
|
|
||||||
|
|
||||||
self::assertFalse($profiler->isRendertime());
|
self::assertFalse($profiler->isRendertime());
|
||||||
self::assertEmpty($profiler->getRendertimeString());
|
self::assertEmpty($profiler->getRendertimeString());
|
||||||
|
|
||||||
$profiler->stopRecording('test1');
|
$profiler->saveTimestamp(time(), 'network', 'test1');
|
||||||
|
|
||||||
$config = \Mockery::mock(IConfig::class);
|
$config = \Mockery::mock(IConfig::class);
|
||||||
$config->shouldReceive('get')
|
$config->shouldReceive('get')
|
||||||
|
@ -283,8 +282,7 @@ class ProfilerTest extends MockedTest
|
||||||
|
|
||||||
$profiler->update($config);
|
$profiler->update($config);
|
||||||
|
|
||||||
$profiler->startRecording('database');
|
$profiler->saveTimestamp(time(), 'database', 'test2');
|
||||||
$profiler->stopRecording('test2');
|
|
||||||
|
|
||||||
self::assertTrue($profiler->isRendertime());
|
self::assertTrue($profiler->isRendertime());
|
||||||
$output = $profiler->getRendertimeString();
|
$output = $profiler->getRendertimeString();
|
||||||
|
|
Loading…
Add table
Reference in a new issue