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
Push — main ( d9cfb9...10f5c7 )
by Dan
32s queued 21s
created

HardwareTypeTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUpBeforeClass() 0 3 1
A test_get() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace SmrTest\lib\DefaultGame;
4
5
use PHPUnit\Framework\TestCase;
6
use Smr\HardwareType;
7
8
/**
9
 * @covers Smr\HardwareType
10
 */
11
class HardwareTypeTest extends TestCase {
12
13
	public static function setUpBeforeClass(): void {
14
		// Make sure cache is clear so we can cover the cache population code
15
		HardwareType::clearCache();
16
	}
17
18
	public function test_get(): void {
19
		// Spot check one of the hardware types
20
		$expected = new HardwareType(HARDWARE_COMBAT, 'Combat Drones', 5000);
21
		self::assertEquals($expected, HardwareType::get(HARDWARE_COMBAT));
22
	}
23
24
}
25