public function getParam($name)
{
if (isset($this->helperScriptParameters[$name])) {
return $this->helperScriptParameters[$name];
}
return null;
}
/** * Test * * @return void */ public function testGetParam() { ob_start(); $this->object->__invoke('script-identifier', array('key' => 'value')); $data = ob_get_clean(); $this->assertEquals('value', $this->object->getParam('key')); $this->assertNull($this->object->getParam('fake-key')); }