Skip to content
Permalink
Browse files

Migrating Cache group case to PHPUnit.

  • Loading branch information...
markstory committed Jun 21, 2010
1 parent 9ace010 commit 4a5353e00aa3197b8502cd18e564f24a023e3bfe
Showing with 49 additions and 49 deletions.
  1. +49 −0 cake/tests/cases/libs/all_cache_engines.test.php
  2. +0 −49 cake/tests/groups/cache.group.php
@@ -0,0 +1,49 @@
<?php
/**
* AllCacheEngines file
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package cake
* @subpackage cake.tests.cases
* @since CakePHP(tm) v 1.2.0.4206
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* AllCacheEngines class
*
* This test group will run view class tests (view, theme)
*
* @package cake
* @subpackage cake.tests.groups
*/
class AllCacheEngines extends PHPUnit_Framework_TestSuite {
/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite() {
$suite = new PHPUnit_Framework_TestSuite('All Cache related class tests');
$suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'cache.test.php');
$cacheIterator = new DirectoryIterator(CORE_TEST_CASES . DS . 'libs' . DS . 'cache');
foreach ($cacheIterator as $i => $file) {
if (!$file->isDot()) {
$suite->addTestfile($file->getPathname());
}
}
return $suite;
}
}

This file was deleted.

Oops, something went wrong.

0 comments on commit 4a5353e

Please sign in to comment.
You can’t perform that action at this time.