GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( bb8806...1a2c53 )
by Marc
10s
created

SeriesTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Ob\HighchartsBundle\Tests\Highcharts;
4
5
use Ob\HighchartsBundle\Highcharts\Highchart;
6
7
/**
8
 * This class hold Unit tests for the series option
9
 */
10
class SeriesTest extends \PHPUnit_Framework_TestCase
11
{
12
    /**
13
     * @var array
14
     */
15
    private $series;
16
17
    /**
18
     * Initialises the data
19
     */
20
    public function setUp()
21
    {
22
        $this->series = array(
23
            array("name" => "Data Serie #1", "data" => array(1,2,4,5,6,3,8)),
24
            array("name" => "Data Serie #2", "data" => array(7,3,5,1,6,5,9))
25
        );
26
    }
27
28
    /**
29
     * Series output
30
     */
31
    public function testData()
32
    {
33
        $chart = new Highchart();
34
        $chart->series($this->series);
35
36
        $this->assertRegExp('/\{"name":"Data Serie #1","data":\[1,2,4,5,6,3,8\]\}/', $chart->render());
37
        $this->assertRegExp('/\{"name":"Data Serie #2","data":\[7,3,5,1,6,5,9\]\}/', $chart->render());
38
    }
39
}
40