<?php
+
/**
* Cache tests
*/
+
namespace Shaarli\Render;
use PHPUnit\Framework\TestCase;
use Shaarli\Security\SessionManager;
-// required to access $_SESSION array
-session_start();
-
/**
* Unitary tests for cached pages
*/
/**
* Populate the cache with dummy files
*/
- public function setUp()
+ protected function setUp(): void
{
$this->cacheManager = new PageCacheManager(static::$testCacheDir, true);
/**
* Remove dummycache folder after each tests.
*/
- public function tearDown()
+ protected function tearDown(): void
{
array_map('unlink', glob(self::$testCacheDir . '/*'));
rmdir(self::$testCacheDir);