getFormatter() 공개 메소드

public getFormatter ( ) : Browscap\Formatter\FormatterInterface
리턴 Browscap\Formatter\FormatterInterface
예제 #1
0
 /**
  * tests setting and getting a formatter
  *
  * @group writer
  * @group sourcetest
  */
 public function testSetGetFormatter()
 {
     $mockFormatter = $this->createMock(\Browscap\Formatter\CsvFormatter::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\\CsvFormatter', array(), array(), '', false);
     self::assertSame($this->object, $this->object->setFormatter($mockFormatter));
     self::assertSame($mockFormatter, $this->object->getFormatter());
 }