Skip to content

Commit

Permalink
Migrating CacheTest to phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 13, 2010
1 parent c1dc753 commit 6613cfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cake/tests/cases/libs/cache.test.php
Expand Up @@ -21,8 +21,6 @@
require LIBS . 'cache.php';
}

Mock::generate('StdClass', 'RubbishEngine');

/**
* CacheTest class
*
Expand Down Expand Up @@ -139,6 +137,7 @@ function testInvaidConfig() {
* @return void
*/
function testAttemptingToConfigureANonCacheEngineClass() {
$this->getMock('StdClass', array(), array(), 'RubbishEngine');
$this->expectException();
Cache::config('Garbage', array(
'engine' => 'Rubbish'
Expand Down

0 comments on commit 6613cfb

Please sign in to comment.