getFilter() public method

public getFilter ( ) : Browscap\Filter\FilterInterface
return Browscap\Filter\FilterInterface
示例#1
0
 /**
  * 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());
 }
示例#2
0
 /**
  * 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());
 }