<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
*/
private $logger;
- protected function setUp()
+ protected function setUp(): void
{
parent::setUp();
->andReturn(true)
->twice();
$profiler = new Profiler($configCache);
+
+ self::assertInstanceOf(Profiler::class, $profiler);
}
/**
'name' => 'rendering',
'functions' => ['test', 'it7'],
],
- 'parser' => [
+ 'session' => [
'timestamp' => time(),
- 'name' => 'parser',
+ 'name' => 'session',
'functions' => ['test', 'it8'],
],
'marktime' => [
'timestamp' => time(),
- 'name' => 'parser',
+ 'name' => 'session',
'functions' => ['test'],
],
// This one isn't set during reset
* Test the Profiler reset
* @dataProvider dataPerformance
*/
- public function testReset($timestamp, $name, array $functions)
+ public function testReset($timestamp, $name)
{
$configCache = \Mockery::mock(Cache::class);
$configCache->shouldReceive('get')