public function testStyle()
{
$style = new TableStyle();
$style->setHorizontalBorderChar('.')->setVerticalBorderChar('.')->setCrossingChar('.');
Table::setStyleDefinition('dotfull', $style);
$table = new Table($output = $this->getOutputStream());
$table->setHeaders(array('Foo'))->setRows(array(array('Bar')))->setStyle('dotfull');
$table->render();
$expected = <<<TABLE
.......
. Foo .
.......
. Bar .
.......
TABLE;
$this->assertEquals($expected, $this->getOutputContent($output));
}