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.

SSHCheckTest   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 4 1
A testCheck() 0 4 1
A testGetFailureMessage() 0 4 1
A testGetSuccessMessage() 0 4 1
A testIsOptional() 0 4 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\Check;
12
13
use Gerrie\Check\SSHCheck;
14
15
class SSHCheckTest extends \PHPUnit_Framework_TestCase
16
{
17
18
    /**
19
     * @var \Gerrie\Check\CheckInterface
20
     */
21
    protected $checkInstance;
22
23
    public function setUp()
24
    {
25
        $this->checkInstance = new SSHCheck();
26
    }
27
28
    public function tearDown()
29
    {
30
        $this->checkInstance = null;
31
    }
32
33
    public function testCheck()
34
    {
35
        $this->assertTrue($this->checkInstance->check());
36
    }
37
38
    public function testGetFailureMessage()
39
    {
40
        $this->assertInternalType('string', $this->checkInstance->getFailureMessage());
41
    }
42
43
    public function testGetSuccessMessage()
44
    {
45
        $this->assertInternalType('string', $this->checkInstance->getSuccessMessage());
46
    }
47
48
    public function testIsOptional()
49
    {
50
        $this->assertInternalType('bool', $this->checkInstance->isOptional());
51
    }
52
}