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

Passed
Pull Request — master (#1112)
by Dan
04:50
created

RaceDetailsTest::test_getLongDescription()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 2
nc 2
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace SmrTest\lib\DefaultGame;
4
5
use Smr\RaceDetails;
6
use Smr\Race;
7
8
/**
9
 * @covers Smr\RaceDetails
10
 */
11
class RaceDetailsTest extends \PHPUnit\Framework\TestCase {
12
13
	public function test_getShortDescription() : void {
14
		// Check that a description exists for all playable races
15
		foreach (Race::getPlayableIDs() as $raceID) {
16
			self::assertNotEmpty(RaceDetails::getShortDescription($raceID));
17
		}
18
	}
19
20
	public function test_getLongDescription() : void {
21
		// Check that a description exists for all playable races
22
		foreach (Race::getPlayableIDs() as $raceID) {
23
			self::assertNotEmpty(RaceDetails::getLongDescription($raceID));
24
		}
25
	}
26
27
}
28