mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Migrating CacheTest to phpunit
This commit is contained in:
parent
c1dc753be5
commit
6613cfb662
1 changed files with 1 additions and 2 deletions
|
@ -21,8 +21,6 @@ if (!class_exists('Cache')) {
|
|||
require LIBS . 'cache.php';
|
||||
}
|
||||
|
||||
Mock::generate('StdClass', 'RubbishEngine');
|
||||
|
||||
/**
|
||||
* CacheTest class
|
||||
*
|
||||
|
@ -139,6 +137,7 @@ class CacheTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testAttemptingToConfigureANonCacheEngineClass() {
|
||||
$this->getMock('StdClass', array(), array(), 'RubbishEngine');
|
||||
$this->expectException();
|
||||
Cache::config('Garbage', array(
|
||||
'engine' => 'Rubbish'
|
||||
|
|
Loading…
Reference in a new issue