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