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.

SeriesTest::testData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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