$this->
expectExceptionMessage('Style "absent" is not defined.'
);
Table::
getStyleDefinition('absent'
);
} /**
* @dataProvider renderSetTitle
*/
public function testSetTitle($headerTitle,
$footerTitle,
$style,
$expected) { (new Table($output =
$this->
getOutputStream())) ->
setHeaderTitle($headerTitle) ->
setFooterTitle($footerTitle) ->
setHeaders(['ISBN', 'Title', 'Author'
]) ->
setRows([ ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'
],
['9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens'
],
['960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'
],
['80-902734-1-6', 'And Then There Were None', 'Agatha Christie'
],
]) ->
setStyle($style) ->
render() ;