aboutsummaryrefslogtreecommitdiff
path: root/tests/CacheTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/CacheTest.php')
-rw-r--r--tests/CacheTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/CacheTest.php b/tests/CacheTest.php
index 15d03ec1..491db75a 100644
--- a/tests/CacheTest.php
+++ b/tests/CacheTest.php
@@ -8,13 +8,13 @@ class CacheTest extends TestCase
{
public function testConfig()
{
- $sut = new \FileCache(['path' => '/tmp/']);
+ $sut = new \FileCache(new \NullLogger(), ['path' => '/tmp/']);
$this->assertSame(['path' => '/tmp/', 'enable_purge' => true], $sut->getConfig());
- $sut = new \FileCache(['path' => '/', 'enable_purge' => false]);
+ $sut = new \FileCache(new \NullLogger(), ['path' => '/', 'enable_purge' => false]);
$this->assertSame(['path' => '/', 'enable_purge' => false], $sut->getConfig());
- $sut = new \FileCache(['path' => '/tmp', 'enable_purge' => true]);
+ $sut = new \FileCache(new \NullLogger(), ['path' => '/tmp', 'enable_purge' => true]);
$this->assertSame(['path' => '/tmp/', 'enable_purge' => true], $sut->getConfig());
}
@@ -23,7 +23,7 @@ class CacheTest extends TestCase
$temporaryFolder = sprintf('%s/rss_bridge_%s/', sys_get_temp_dir(), create_random_string());
mkdir($temporaryFolder);
- $sut = new \FileCache([
+ $sut = new \FileCache(new \NullLogger(), [
'path' => $temporaryFolder,
'enable_purge' => true,
]);