getFormatter() public method

public getFormatter ( ) : Browscap\Formatter\FormatterInterface
return Browscap\Formatter\FormatterInterface
示例#1
0
 /**
  * tests setting and getting a formatter
  *
  * @group writer
  * @group sourcetest
  */
 public function testSetGetFormatter()
 {
     $mockFormatter = $this->createMock(\Browscap\Formatter\PhpFormatter::class);
     self::assertSame($this->object, $this->object->setFormatter($mockFormatter));
     self::assertSame($mockFormatter, $this->object->getFormatter());
 }
示例#2
0
 /**
  * tests setting and getting a formatter
  *
  * @group writer
  * @group sourcetest
  */
 public function testSetGetFormatter()
 {
     $mockFormatter = $this->getMock('\\Browscap\\Formatter\\PhpFormatter', array(), array(), '', false);
     self::assertSame($this->object, $this->object->setFormatter($mockFormatter));
     self::assertSame($mockFormatter, $this->object->getFormatter());
 }