/**
* tests setting and getting a formatter
*
* @group writer
* @group sourcetest
*/
public function testSetGetFormatter()
{
$mockFormatter = $this->getMock('\\Browscap\\Formatter\\XmlFormatter', array(), array(), '', false);
self::assertSame($this->object, $this->object->setFormatter($mockFormatter));
self::assertSame($mockFormatter, $this->object->getFormatter());
}