| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | protected function setUp() { |
||
| 21 | |||
| 22 | if ( !class_exists( '\Zend\Cache\StorageFactory' ) ) { |
||
| 23 | $this->markTestSkipped( 'StorageFactory is not available' ); |
||
| 24 | } |
||
| 25 | |||
| 26 | $memoryCache = StorageFactory::factory( array( |
||
| 27 | 'adapter' => array( |
||
| 28 | 'name' => 'memory', |
||
| 29 | 'options' => array( 'ttl' => 100 ), |
||
| 30 | ), |
||
| 31 | 'plugins' => array( |
||
| 32 | 'exception_handler' => array( 'throw_exceptions' => false ), |
||
| 33 | ), |
||
| 34 | ) ); |
||
| 35 | |||
| 36 | $this->cache = new ZendCache( $memoryCache ); |
||
| 37 | } |
||
| 38 | |||
| 40 |