/**
*
*/
public function testGetBrowserWithDefaultResult()
{
$formatter = $this->getMock('\\BrowscapPHP\\Formatter\\PhpGetBrowser', array('getData'), array(), '', false);
$formatter->expects(self::once())->method('getData')->will(self::returnValue(null));
$parser = $this->getMock('\\BrowscapPHP\\Parser\\Ini', array('getBrowser'), array(), '', false);
$parser->expects(self::once())->method('getBrowser')->will(self::returnValue(null));
$this->object->setFormatter($formatter);
$this->object->setParser($parser);
$result = $this->object->getBrowser('Mozilla/5.0 (compatible; Ask Jeeves/Teoma)');
self::assertNull($result);
}