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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 2
c 2
b 0
f 2
lcom 0
cbo 1
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGlobal() 0 10 1
A testLang() 0 7 1
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