/** * tests setting and getting a formatter * * @group writer * @group sourcetest */ public function testSetGetFormatter() { $mockFormatter = $this->getMock('\\Browscap\\Formatter\\JsonFormatter', array(), array(), '', false); 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->createMock(\Browscap\Formatter\JsonFormatter::class); self::assertSame($this->object, $this->object->setFormatter($mockFormatter)); self::assertSame($mockFormatter, $this->object->getFormatter()); }