Browse Source

Remove use of TestCase::getMock() from "Cache" namepace tests.

ADmad 9 years ago
parent
commit
32705075a4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/TestCase/Cache/CacheTest.php

+ 3 - 1
tests/TestCase/Cache/CacheTest.php

@@ -244,7 +244,9 @@ class CacheTest extends TestCase
      */
     public function testConfigInvalidObject()
     {
-        $this->getMock('\StdClass', [], [], 'RubbishEngine');
+        $this->getMockBuilder(\StdClass::class)
+            ->setMockClassName('RubbishEngine')
+            ->getMock();
         Cache::config('test', [
             'engine' => '\RubbishEngine'
         ]);