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

GlobalTest::testGlobal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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