hasParam() public method

Test if a param is set.
public hasParam ( string $key ) : boolean
$key string Key to test
return boolean True if the param is set, false otherwise
 public function testHasParam()
 {
     $param = new Param();
     $key = 'name';
     $value = 'nicolas ruflin';
     $this->assertFalse($param->hasParam($key));
     $param->setParam($key, $value);
     $this->assertTrue($param->hasParam($key));
 }