only() public method

Limits the parsers to only those you specify
public only ( mixed $only = null ) : object
$only mixed parsers
return object BBCodeParser object
 public function testOnlyFunctionality()
 {
     $b = new BBCodeParser();
     $onlyParsers = array_values($b->only('image', 'link')->getParsers());
     $this->assertEquals($onlyParsers, array('image', 'link'));
 }