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

PaneTest::testEndAngle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
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
7
/**
8
 * This class hold Unit tests for the pane option
9
 */
10
class PaneTest extends \PHPUnit_Framework_TestCase
11
{
12
    public function testBackground()
13
    {
14
        $this->markTestIncomplete(
15
            'This test has not been implemented yet.'
16
        );
17
    }
18
19
    public function testCenter()
20
    {
21
        $chart = new Highchart();
22
23
        // pixel based
24
        $chart->pane->center(array(50, 100));
25
        $this->assertRegExp('/pane: \{"center":\[50,100\]\}/', $chart->render());
26
27
        // percentage based
28
        $chart->pane->center(array('50%', '40%'));
29
        $this->assertRegExp('/pane: \{"center":\["50%","40%"\]\}/', $chart->render());
30
    }
31
32
    public function testEndAngle()
33
    {
34
        $chart = new Highchart();
35
36
        $chart->pane->endAngle(5);
37
        $this->assertRegExp('/pane: \{"endAngle":5\}/', $chart->render());
38
    }
39
40
    public function testStartAngle()
41
    {
42
        $chart = new Highchart();
43
44
        $chart->pane->startAngle(5);
45
        $this->assertRegExp('/pane: \{"startAngle":5\}/', $chart->render());
46
    }
47
}
48