Exemplo n.º 1
0
 /**
  * @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);
 }
Exemplo n.º 2
0
 /**
  * @expectedException Vmvc_Exception
  */
 public function testCallHelperBrokerIsNotSet()
 {
     $this->object->__call('test', array());
 }