$dom =
new \
DOMDocument();
$columnElement =
$dom->
createElement('column'
);
$columnElement->
setAttribute('ref', 'column ref'
);
if ($hidden !== null
) { $columnElement->
setAttribute('hidden',
$hidden);
} $column = Column::
fromXml($columnElement);
static::
assertInstanceOf(Column::
class,
$column);
static::
assertEquals($result,
$column->
isHidden());
static::
assertEquals('column ref',
$column->
getRef());
} public static function provider(): \Generator
{ yield 'is hidden' =>
['hidden' => 'true', 'result' => true
];
yield 'is visible' =>
['hidden' => 'false', 'result' => false
];
yield 'is undefined' =>
['hidden' => null, 'result' => false
];
}}