getParser() public method

public getParser ( ) : Woothee\Classifier
return Woothee\Classifier
 public function testParser()
 {
     $parser = $this->getParser();
     $provider = new Woothee();
     $provider->setParser($parser);
     $this->assertSame($parser, $provider->getParser());
     $provider->setParser(null);
     $this->assertInstanceOf('Woothee\\Classifier', $provider->getParser());
 }
 public function testMethodParse()
 {
     $provider = new Woothee();
     $parser = $provider->getParser();
     /*
      * test method exists
      */
     $class = new \ReflectionClass($parser);
     $this->assertTrue($class->hasMethod('parse'), 'method parse() does not exist anymore');
     /*
      * test paramters
      */
     $method = $class->getMethod('parse');
     $parameters = $method->getParameters();
     $this->assertEquals(1, count($parameters));
 }
 public function testParser()
 {
     $provider = new Woothee();
     $this->assertInstanceOf('Woothee\\Classifier', $provider->getParser());
 }