getFormatter() 공개 메소드

public getFormatter ( ) : BrowscapPHP\Formatter\FormatterInterface
리턴 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());
 }