Skip to content

Commit

Permalink
re-add missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
klas committed Jun 3, 2017
1 parent fd6a7a6 commit 2defe4d
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* @package Joomla.UnitTest
* @subpackage Cache
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/

/**
* Test class for JCacheStorageXcache.
*/
class JCacheStorageXcacheTest extends TestCaseCache
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @return void
*/
protected function setUp()
{
if (!JCacheStorageXcache::isSupported())
{
$this->markTestSkipped('The XCache cache handler is not supported on this system.');
}

parent::setUp();

$this->handler = new JCacheStorageXcache;

// Override the lifetime because the JCacheStorage API multiplies it by 60 (converts minutes to seconds)
$this->handler->_lifetime = 2;
}
}

0 comments on commit 2defe4d

Please sign in to comment.