Skip to content

Commit

Permalink
Remove use of TestCase::getMock() from "Cache" namepace tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 4, 2016
1 parent c5963ca commit 3270507
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/TestCase/Cache/CacheTest.php
Expand Up @@ -244,7 +244,9 @@ public function testConfigInvalidEngine()
*/
public function testConfigInvalidObject()
{
$this->getMock('\StdClass', [], [], 'RubbishEngine');
$this->getMockBuilder(\StdClass::class)
->setMockClassName('RubbishEngine')
->getMock();
Cache::config('test', [
'engine' => '\RubbishEngine'
]);
Expand Down

0 comments on commit 3270507

Please sign in to comment.