Migrating CacheTest to phpunit

This commit is contained in:
José Lorenzo Rodríguez 2010-05-13 00:13:40 -04:30
parent c1dc753be5
commit 6613cfb662

View file

@ -21,8 +21,6 @@ if (!class_exists('Cache')) {
require LIBS . 'cache.php'; require LIBS . 'cache.php';
} }
Mock::generate('StdClass', 'RubbishEngine');
/** /**
* CacheTest class * CacheTest class
* *
@ -139,6 +137,7 @@ class CacheTest extends CakeTestCase {
* @return void * @return void
*/ */
function testAttemptingToConfigureANonCacheEngineClass() { function testAttemptingToConfigureANonCacheEngineClass() {
$this->getMock('StdClass', array(), array(), 'RubbishEngine');
$this->expectException(); $this->expectException();
Cache::config('Garbage', array( Cache::config('Garbage', array(
'engine' => 'Rubbish' 'engine' => 'Rubbish'