Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/7476'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed May 4, 2015
2 parents 8a5de4c + ff73321 commit 784c8fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/Pattern/CaptureCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function testSetThrowsLogicExceptionOnMissingPublicDir()
public function testSetWithNormalPageId()
{
$this->_pattern->set('content', '/dir1/dir2/file');
$this->assertTrue(file_exists($this->_tmpCacheDir . '/dir1/dir2/file'));
$this->assertFileExists($this->_tmpCacheDir . '/dir1/dir2/file');
$this->assertSame(file_get_contents($this->_tmpCacheDir . '/dir1/dir2/file'), 'content');
}

Expand All @@ -101,7 +101,7 @@ public function testSetWithIndexFilename()
$this->_options->setIndexFilename('test.html');

$this->_pattern->set('content', '/dir1/dir2/');
$this->assertTrue(file_exists($this->_tmpCacheDir . '/dir1/dir2/test.html'));
$this->assertFileExists($this->_tmpCacheDir . '/dir1/dir2/test.html');
$this->assertSame(file_get_contents($this->_tmpCacheDir . '/dir1/dir2/test.html'), 'content');
}

Expand Down
4 changes: 2 additions & 2 deletions test/Storage/Adapter/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function testGetSetLibOptionsOnExistingRedisResourceInstance()
$this->_options->setLibOptions($options);
$this->_storage->setItem($key, $value);
//should not serialize array correctly
$this->assertFalse(is_array($this->_storage->getItem($key)), 'Redis should not serialize automatically anymore, lib options were not set correctly');
$this->assertNotInternalType('array', $this->_storage->getItem($key), 'Redis should not serialize automatically anymore, lib options were not set correctly');
}

public function testGetSetLibOptionsWithCleanRedisResourceInstance()
Expand All @@ -233,7 +233,7 @@ public function testGetSetLibOptionsWithCleanRedisResourceInstance()
$this->_options->setLibOptions($options);
$redis->setItem($key, $value);
//should not serialize array correctly
$this->assertFalse(is_array($redis->getItem($key)), 'Redis should not serialize automatically anymore, lib options were not set correctly');
$this->assertNotInternalType('array', $redis->getItem($key), 'Redis should not serialize automatically anymore, lib options were not set correctly');
}

/* RedisOptions */
Expand Down

0 comments on commit 784c8fb

Please sign in to comment.