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 — main (#1498)
by Dan
04:47
created

StoredDestinationTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_getDisplayName() 0 8 1
1
<?php declare(strict_types=1);
2
3
namespace SmrTest\lib\DefaultGame;
4
5
use PHPUnit\Framework\TestCase;
6
use Smr\StoredDestination;
7
8
/**
9
 * @covers Smr\StoredDestination
10
 */
11
class StoredDestinationTest extends TestCase {
12
13
	/**
14
	 * @testWith ["foo", "#42 - foo"]
15
	 *           ["", "#42"]
16
	 */
17
	public function test_getDisplayName(string $label, string $expected): void {
18
		$dest = new StoredDestination(
19
			sectorID: 42,
20
			label: $label,
21
			offsetLeft: 1,
22
			offsetTop: 1,
23
		);
24
		self::assertSame($expected, $dest->getDisplayName());
25
	}
26
27
}
28