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

LangTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testMonths() 0 10 1
A testShortMonths() 0 10 1
A testWeekDays() 0 10 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 lang option
9
 */
10
class LangTest extends \PHPUnit_Framework_TestCase
11
{
12
    /**
13
     * Set localized month names
14
     */
15
    public function testMonths()
16
    {
17
        $chart = new Highchart();
18
        $chart->lang->months(array('Janvier', 'Fevrier', 'Mars', 'Avril', 'Mai', 'Juin',  'Juillet', 'Aout', 'Septembre', 'Octobre', 'Novembre', 'Decembre'));
19
20
        $this->assertRegExp(
21
            '/lang: \{"months":\["Janvier","Fevrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Decembre"\]\}/',
22
            $chart->render()
23
        );
24
    }
25
26
    /**
27
     * Set abbreviated localized month names
28
     */
29
    public function testShortMonths()
30
    {
31
        $chart = new Highchart();
32
        $chart->lang->shortMonths(array('Jan', 'Fev', 'Mars', 'Avril', 'Mai', 'Juin',  'Juil', 'Aout', 'Sept', 'Oct', 'Nov', 'Dec'));
33
34
        $this->assertRegExp(
35
            '/lang: \{"shortMonths":\["Jan","Fev","Mars","Avril","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Dec"\]\}/',
36
            $chart->render()
37
        );
38
    }
39
40
    /**
41
     * Set localized weekday names
42
     */
43
    public function testWeekDays()
44
    {
45
        $chart = new Highchart();
46
        $chart->lang->weekdays(array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'));
47
48
        $this->assertRegExp(
49
            '/lang: \{"weekdays":\["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"\]\}/',
50
            $chart->render()
51
        );
52
    }
53
}
54