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.

SSHDataServiceTest::getServiceMock()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 2 Features 2
Metric Value
dl 0
loc 14
rs 9.4285
c 3
b 2
f 2
cc 1
eloc 8
nc 1
nop 1
1
<?php
2
/**
3
 * This file is part of the Gerrie package.
4
 *
5
 * (c) Andreas Grunwald <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Gerrie\Tests\API\DataService;
12
13
use Gerrie\API\DataService\SSHDataService;
14
use Gerrie\API\DataService\DataServiceInterface;
15
16
class SSHDataServiceTest extends DataServiceTestBase
17
{
18
19
    /**
20
     * @param array $configArgument
21
     * @return DataServiceInterface
22
     */
23
    protected function getServiceMock($configArgument = [])
24
    {
25
        $config = [
26
            'KeyFile' => '/Users/Dummy/.ssh/id_rsa_foo',
27
            'Port' => 29418
28
        ];
29
        $config = array_merge($config, $configArgument);
30
31
        $sshMock = $this->getMock('\Gerrie\Component\Connection\SSH', [], ['ssh', $config]);
32
33
        $instance = new SSHDataService($sshMock, $config);
34
35
        return $instance;
36
    }
37
38
    /**
39
     * TODO: Create tests for:
40
     *  * testSetterAndGetterQueryLimitWithoutInitialisation
41
     *  * transformJsonResponse
42
     *  * getProjects
43
     *  * getChangesets($projectName, $resumeKey = null, $start = 0);
44
     *  * getVersion
45
     */
46
}