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.

GlobalTest::testLang()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
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
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * This class hold Unit tests for the global option
10
 */
11
class GlobalTest extends TestCase
12
{
13
    /**
14
     * useUTC option (true/false)
15
     */
16
    public function testGlobal()
17
    {
18
        $chart = new Highchart();
19
20
        $chart->global->useUTC("true");
21
        $this->assertRegExp('/global: \{"useUTC":"true"\}/', $chart->render());
22
23
        $chart->global->useUTC("false");
24
        $this->assertRegExp('/global: \{"useUTC":"false"\}/', $chart->render());
25
    }
26
27
    /**
28
     * noData option (string)
29
     */
30
    public function testLang()
31
    {
32
        $chart = new Highchart();
33
34
        $chart->lang->noData("No data to display");
35
        $this->assertRegExp('/"noData":"No data to display"/', $chart->render());
36
    }
37
}
38