/** * tests setting and getting a filter * * @group writer * @group sourcetest */ public function testSetGetFilter() { $mockFilter = $this->createMock(\Browscap\Filter\FullFilter::class); self::assertSame($this->object, $this->object->setFilter($mockFilter)); self::assertSame($mockFilter, $this->object->getFilter()); }
/** * tests setting and getting a filter * * @group writer * @group sourcetest */ public function testSetGetFilter() { $mockFilter = $this->getMock('\\Browscap\\Filter\\FullFilter', array(), array(), '', false); self::assertSame($this->object, $this->object->setFilter($mockFilter)); self::assertSame($mockFilter, $this->object->getFilter()); }