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 (#1078)
by Dan
05:25
created

SmrCombatDronesTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_getMaxDamage() 0 7 1
1
<?php declare(strict_types=1);
2
3
namespace SmrTest\lib\DefaultGame;
4
5
use SmrCombatDrones;
6
7
/**
8
 * @covers SmrCombatDrones
9
 */
10
class SmrCombatDronesTest extends \PHPUnit\Framework\TestCase {
11
12
	public function test_getMaxDamage() {
13
		// regular drones
14
		$drones = new SmrCombatDrones(100); // doesn't matter how many
15
		$this->assertSame(2, $drones->getMaxDamage());
16
		// port/planet drones
17
		$drones = new SmrCombatDrones(100, true);
18
		$this->assertSame(1, $drones->getMaxDamage());
19
	}
20
21
}
22