/** * @throws InvalidArgumentException * @param string $name * @param mixed $arguments */ public function __call($name, $arguments) { if (substr_count($name, 'Action') > 0) { throw new InvalidArgumentException('Action-Method was not found.'); } return parent::__call($name, $arguments); }
/** * @expectedException Vmvc_Exception */ public function testCallHelperBrokerIsNotSet() { $this->object->__call('test', array()); }