Browscap\Filter\LiteFilter::isOutputProperty PHP Method

isOutputProperty() public method

checks if a property should be in the output
public isOutputProperty ( string $property, Browscap\Writer\WriterInterface $writer = null ) : boolean
$property string
$writer Browscap\Writer\WriterInterface
return boolean
    public function isOutputProperty($property, WriterInterface $writer = null)
    {
        $propertyHolder = new PropertyHolder();
        if (!$propertyHolder->isOutputProperty($property, $writer)) {
            return false;
        }
        return $propertyHolder->isLiteModeProperty($property);
    }

Usage Example

Example #1
0
 /**
  * @dataProvider outputPropertiesDataProvider
  *
  * @group filter
  * @group sourcetest
  */
 public function testIsOutputProperty($propertyName, $isExtra)
 {
     $actualValue = $this->object->isOutputProperty($propertyName);
     self::assertSame($isExtra, $actualValue);
 }