Esempio n. 1
0
 protected function processWithAction(Call $call)
 {
     $p = $call->getParameters();
     array_unshift($p, $call->getName());
     return call_user_func_array($this->action, $p);
 }
Esempio n. 2
0
 public function testUndefined()
 {
     $call = new Call('testi', array('eins'));
     $this->assertEquals('eins', $call->getParameter(0));
     $this->assertEquals(Call::UNDEFINED, $call->getParameter(1));
 }