getParam() public method

Returns param from name.
public getParam ( string $name ) : mixed
$name string Parameter name
return mixed
Example #1
0
 /**
  * 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'));
 }