public isOutputProperty ( string $property, Browscap\Writer\WriterInterface $writer = null ) : boolean | ||
$property | string | |
$writer | Browscap\Writer\WriterInterface | |
Результат | boolean |
public function isOutputProperty($property, WriterInterface $writer = null)
{
$propertyHolder = new PropertyHolder();
if (!$propertyHolder->isOutputProperty($property, $writer)) {
return false;
}
return $propertyHolder->isLiteModeProperty($property);
}
/** * @dataProvider outputPropertiesDataProvider * * @group filter * @group sourcetest */ public function testIsOutputProperty($propertyName, $isExtra) { $actualValue = $this->object->isOutputProperty($propertyName); self::assertSame($isExtra, $actualValue); }