Skip to content

Commit

Permalink
Rename $inner to $innerEngine to use the same name as in the subject …
Browse files Browse the repository at this point in the history
…under test
  • Loading branch information
ravage84 committed Sep 5, 2018
1 parent 4bede6a commit 4baa5a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/TestCase/Cache/SimpleCacheEngineTest.php
Expand Up @@ -32,7 +32,7 @@ class SimpleCacheEngineTest extends TestCase
*
* @var CacheEngine
*/
protected $inner;
protected $innerEngine;

/**
* The simple cache engine under test
Expand All @@ -50,13 +50,13 @@ public function setUp()
{
parent::setUp();

$this->inner = new FileEngine();
$this->inner->init([
$this->innerEngine = new FileEngine();
$this->innerEngine->init([
'prefix' => '',
'path' => TMP . 'tests',
'duration' => 5,
]);
$this->cache = new SimpleCacheEngine($this->inner);
$this->cache = new SimpleCacheEngine($this->innerEngine);
}

/**
Expand All @@ -68,7 +68,7 @@ public function tearDown()
{
parent::tearDown();

$this->inner->clear(false);
$this->innerEngine->clear(false);
}

/**
Expand All @@ -81,7 +81,7 @@ public function tearDown()
*/
public function testGetSuccess()
{
$this->inner->write('key_one', 'Some Value');
$this->innerEngine->write('key_one', 'Some Value');
$this->assertSame('Some Value', $this->cache->get('key_one'));
$this->assertSame('Some Value', $this->cache->get('key_one', 'default'));
}
Expand Down Expand Up @@ -140,7 +140,7 @@ public function testSetWithTtl()
sleep(1);
$this->assertSame('a value', $this->cache->get('key'));
$this->assertNull($this->cache->get('expired'));
$this->assertSame(5, $this->inner->getConfig('duration'));
$this->assertSame(5, $this->innerEngine->getConfig('duration'));
}

/**
Expand Down Expand Up @@ -326,7 +326,7 @@ public function testSetMultipleWithTtl()
$results = $this->cache->getMultiple(array_keys($data));
$this->assertNull($results['key']);
$this->assertNull($results['key2']);
$this->assertSame(5, $this->inner->getConfig('duration'));
$this->assertSame(5, $this->innerEngine->getConfig('duration'));
}

/**
Expand Down

0 comments on commit 4baa5a0

Please sign in to comment.