Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Failed Conditions
Pull Request — master (#1082)
by Dan
05:43
created

ShipClassTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_getAllNames() 0 2 1
A test_getName() 0 2 1
1
<?php declare(strict_types=1);
2
3
namespace SmrTest\lib\DefaultGame;
4
5
use Smr\ShipClass;
6
7
/**
8
 * @covers Smr\ShipClass
9
 */
10
class ShipClassTest extends \PHPUnit\Framework\TestCase {
11
12
	public function test_getName() {
13
		$this->assertSame('Trader', ShipClass::getName(2));
14
	}
15
16
	public function test_getAllNames() {
17
		$this->assertSame('Trader', ShipClass::getAllNames()[2]);
18
	}
19
20
}
21