mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
e75fdd21ee
commit
00f3e7e441
1 changed files with 3 additions and 1 deletions
|
@ -181,12 +181,14 @@ abstract class ControllerTestCase extends CakeTestCase {
|
|||
*
|
||||
* @param string $name The name of the function
|
||||
* @param array $arguments Array of arguments
|
||||
* @return Function
|
||||
* @return the return of _testAction
|
||||
* @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 BadMethodCallException("Method '{$name}' does not exist.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue