/** * */ public function testSetGetFormatter() { /** @var \BrowscapPHP\Formatter\PhpGetBrowser $formatter */ $formatter = $this->getMockBuilder(\BrowscapPHP\Formatter\PhpGetBrowser::class)->disableOriginalConstructor()->getMock(); self::assertSame($this->object, $this->object->setFormatter($formatter)); self::assertSame($formatter, $this->object->getFormatter()); }
/** * */ public function testSetGetFormatter() { /** @var \BrowscapPHP\Formatter\PhpGetBrowser $formatter */ $formatter = $this->getMock('\\BrowscapPHP\\Formatter\\PhpGetBrowser', array(), array(), '', false); self::assertSame($this->object, $this->object->setFormatter($formatter)); self::assertSame($formatter, $this->object->getFormatter()); }