Skip to content

Commit

Permalink
Skip wincache tests if wincache.enablecli is off.
Browse files Browse the repository at this point in the history
If wincache is disabled, skip the tests.
  • Loading branch information
markstory committed Apr 21, 2014
1 parent 599b317 commit 02cb70e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/Cache/Engine/WincacheEngine.php
@@ -1,9 +1,5 @@
<?php
/**
* Wincache storage engine for cache.
*
* Supports wincache 1.1.0 and higher.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand All @@ -24,7 +20,6 @@
* Wincache storage engine for cache
*
* Supports wincache 1.1.0 and higher.
*
*/
class WincacheEngine extends CacheEngine {

Expand Down
3 changes: 1 addition & 2 deletions tests/TestCase/Cache/Engine/WincacheEngineTest.php
@@ -1,7 +1,5 @@
<?php
/**
* WincacheEngineTest file
*
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand Down Expand Up @@ -34,6 +32,7 @@ class WincacheEngineTest extends TestCase {
public function setUp() {
parent::setUp();
$this->skipIf(!function_exists('wincache_ucache_set'), 'Wincache is not installed or configured properly.');
$this->skipIf(!ini_get('wincache.enablecli'), 'Wincache is not enabled on the CLI.');
Cache::enable();
$this->_configCache();
}
Expand Down

0 comments on commit 02cb70e

Please sign in to comment.