-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
tests/unit/suites/libraries/joomla/cache/storage/JCacheStorageXcacheTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |