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::testMonths()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
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 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