Test Setup Failed
Push — master ( ab3b35...4b7f60 )
by Christophe
02:30
created

DataTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 15
rs 10
c 1
b 0
f 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