Skip to content

Commit

Permalink
Fix issue with CacheRegistry related to mocks.
Browse files Browse the repository at this point in the history
When a mock returns null for the init() method, no fatal error should be
emitted.
  • Loading branch information
markstory committed Jan 4, 2014
1 parent 86ce95b commit d05f1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cake/Cache/CacheRegistry.php
Expand Up @@ -83,7 +83,7 @@ protected function _create($class, $alias, $config) {

if (!$instance->init($config)) {
throw new Error\Exception(
sprintf('Cache engine %s is not properly configured.', $class)
sprintf('Cache engine %s is not properly configured.', get_class($instance))
);
}

Expand Down

0 comments on commit d05f1e4

Please sign in to comment.