getFormatter() public method

public getFormatter ( ) : BrowscapPHP\Formatter\FormatterInterface
return BrowscapPHP\Formatter\FormatterInterface
示例#1
0
 /**
  *
  */
 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());
 }
示例#2
0
 /**
  *
  */
 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());
 }