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

Commit

Permalink
Merge branch 'cache_tests_cleanup' of https://github.com/marc-mabe/zf2
Browse files Browse the repository at this point in the history
…into hotfix/cache-tests

Conflicts:
	tests/Zend/Locale/Data/CldrTest.php
  • Loading branch information
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions test/PaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,25 +79,8 @@ protected function setUp()

$this->_config = Config\Factory::fromFile(__DIR__ . '/_files/config.xml', true);

$this->_cache = CacheFactory::factory(array(
'adapter' => array(
'name' => 'filesystem',
'options' => array(
'ttl' => 3600,
'cache_dir' => $this->_getTmpDir(),
),
),
'plugins' => array(
array(
'name' => 'serializer',
'options' => array(
'serializer' => 'php_serialize',
),
),
),
));
$this->_cache = CacheFactory::adapterFactory('memory', array('memory_limit' => 0));
$this->_cache->clear(CacheAdapter::MATCH_ALL);

Paginator\Paginator::setCache($this->_cache);

$this->_restorePaginatorDefaults();
Expand Down

0 comments on commit 35beb1b

Please sign in to comment.