Navigation Menu

Skip to content

Commit

Permalink
Fix incorrect namespace.
Browse files Browse the repository at this point in the history
BadMethodCallException is provided by PHP.
  • Loading branch information
markstory committed Aug 29, 2014
1 parent 0ac6ef6 commit 0a24ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TestSuite/ControllerTestCase.php
Expand Up @@ -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.");
}

/**
Expand Down

0 comments on commit 0a24ca3

Please sign in to comment.