getDeviceParser() public method

public getDeviceParser ( string $userAgent ) : Sinergi\BrowserDetector\Device
$userAgent string
return Sinergi\BrowserDetector\Device
 public function testProvider()
 {
     $provider = new SinergiBrowserDetector();
     $this->assertInstanceOf('Sinergi\\BrowserDetector\\Browser', $provider->getBrowserParser(''));
     $this->assertInstanceOf('Sinergi\\BrowserDetector\\Os', $provider->getOperatingSystemParser(''));
     $this->assertInstanceOf('Sinergi\\BrowserDetector\\Device', $provider->getDeviceParser(''));
 }
 public function testDeviceParser()
 {
     $provider = new SinergiBrowserDetector();
     $parser = $provider->getDeviceParser('something');
     /*
      * test method exists
      */
     $class = new \ReflectionClass($parser);
     $this->assertTrue($class->hasMethod('getName'), 'method getName() does not exist anymore');
 }