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.

InputTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 38
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testDataStorage() 0 7 1
A getInput() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the php-phantomjs.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
namespace JonnyW\PhantomJs\Tests\Unit\Procedure;
10
11
use JonnyW\PhantomJs\Procedure\Input;
12
13
/**
14
 * PHP PhantomJs
15
 *
16
 * @author Jon Wenmoth <[email protected]>
17
 */
18
class InputTest extends \PHPUnit_Framework_TestCase
19
{
20
21
/** +++++++++++++++++++++++++++++++++++ **/
22
/** ++++++++++++++ TESTS ++++++++++++++ **/
23
/** +++++++++++++++++++++++++++++++++++ **/
24
25
    /**
26
     * Test data storage.
27
     *
28
     * @access public
29
     * @return void
30
     */
31
    public function testDataStorage()
32
    {
33
        $input = $this->getInput();
34
        $input->set('test', 'Test value');
35
36
        $this->assertSame('Test value', $input->get('test'));
37
    }
38
39
/** +++++++++++++++++++++++++++++++++++ **/
40
/** ++++++++++ TEST ENTITIES ++++++++++ **/
41
/** +++++++++++++++++++++++++++++++++++ **/
42
43
    /**
44
     * Get input.
45
     *
46
     * @access protected
47
     * @return \JonnyW\PhantomJs\Procedure\Input
48
     */
49
    protected function getInput()
50
    {
51
        $input = new Input();
52
53
        return $input;
54
    }
55
}
56