/** * 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()); }
/** * 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()); }