aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cache/file_driver_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-12-30 11:36:08 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-05-09 21:40:06 +0200
commitebac54aa9e705e99a562d2fe2c0f57bc6af8dd32 (patch)
treea6f45f42c8861ba60216517687bfe72084ba7dcb /tests/cache/file_driver_test.php
parentd968392b4d4aa45afc7fbe75e0ad0a1d06e9275e (diff)
downloadforums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar
forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar.gz
forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar.bz2
forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.tar.xz
forums-ebac54aa9e705e99a562d2fe2c0f57bc6af8dd32.zip
[ticket/14948] Adjust calls for twig and phpunit updates
PHPBB3-14948
Diffstat (limited to 'tests/cache/file_driver_test.php')
-rw-r--r--tests/cache/file_driver_test.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/cache/file_driver_test.php b/tests/cache/file_driver_test.php
index 471316847d..37973edba3 100644
--- a/tests/cache/file_driver_test.php
+++ b/tests/cache/file_driver_test.php
@@ -16,22 +16,18 @@ require_once dirname(__FILE__) . '/common_test_case.php';
class phpbb_cache_file_driver_test extends phpbb_cache_common_test_case
{
private $cache_dir;
- protected $driver;
-
- public function __construct()
- {
- $this->cache_dir = dirname(__FILE__) . '/../tmp/cache/';
- }
public function getDataSet()
{
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
}
- protected function setUp()
+ protected function setUp(): void
{
parent::setUp();
+ $this->cache_dir = dirname(__FILE__) . '/../tmp/cache/';
+
if (file_exists($this->cache_dir))
{
// cache directory possibly left after aborted
@@ -43,7 +39,7 @@ class phpbb_cache_file_driver_test extends phpbb_cache_common_test_case
$this->driver = new \phpbb\cache\driver\file($this->cache_dir);
}
- protected function tearDown()
+ protected function tearDown(): void
{
if (file_exists($this->cache_dir))
{