Completed
Push — master ( 110a17...f6145a )
by Christophe
03:27
created

DataTest::testEmptyData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\Tests;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Charts\ColumnChart;
6
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