| 1 | <?php |
||
| 7 | class DataTest extends \PHPUnit_Framework_TestCase |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @expectedException CMEN\GoogleChartsBundle\Exception\GoogleChartsException |
||
| 11 | * @expectedExceptionMessage There is no data for chart. Use method setArrayToDataTable() to provide data. |
||
| 12 | */ |
||
| 13 | public function testEmptyData() |
||
| 14 | { |
||
| 15 | $chart = new ColumnChart(); |
||
| 16 | $chart->setElementID('div-chart') |
||
| 17 | ->getOptions()->setTitle('title')->setTitlePosition('in'); |
||
| 18 | |||
| 19 | $chart->startDraw(); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |