Skip to content
Permalink
Browse files

Fix incorrect namespace.

BadMethodCallException is provided by PHP.
  • Loading branch information...
markstory committed Aug 29, 2014
1 parent 0ac6ef6 commit 0a24ca3c4e12c7cfe2d2bb46f84075bf63c5fdf9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/TestSuite/ControllerTestCase.php
@@ -201,13 +201,13 @@ abstract class ControllerTestCase extends TestCase {
* @param string $name The name of the function
* @param array $arguments Array of arguments
* @return the return of _testAction
* @throws \Cake\Error\BadMethodCallException when you call methods that don't exist.
* @throws \BadMethodCallException when you call methods that don't exist.
*/
public function __call($name, $arguments) {
if ($name === 'testAction') {
return call_user_func_array(array($this, '_testAction'), $arguments);
}
throw new Error\BadMethodCallException("Method '{$name}' does not exist.");
throw new \BadMethodCallException("Method '{$name}' does not exist.");
}
/**

0 comments on commit 0a24ca3

Please sign in to comment.
You can’t perform that action at this time.