addFilter() public method

Nested keys are treated like html form names - e.g. the key name my_form[id] would stop the value inside $_POST['my_form']['id'] from being sent.
public addFilter ( string | Airbrake\Filter\FilterInterface $keyName ) : self
$keyName string | Airbrake\Filter\FilterInterface
return self
 public function testCustomFilter()
 {
     $initial = array('foo' => 1, 'bar' => 2);
     $expected = array('bar' => 2);
     $instance = new CustomFilter('foo');
     $config = new Configuration('test', array('postData' => $initial));
     $config->addFilter($instance);
     $this->assertEquals($expected, $config->getParameters());
 }