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

pluraliseTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_pluralise() 0 3 1
A pluralise_provider() 0 9 1
1
<?php declare(strict_types=1);
2
3
namespace SmrTest\lib\DefaultGame;
4
5
/**
6
 * @covers ::pluralise
7
 */
8
class pluraliseTest extends \PHPUnit\Framework\TestCase {
9
10
	/**
11
	 * @dataProvider pluralise_provider
12
	 */
13
	public function test_pluralise(string $in, mixed $count, string $expect) {
14
		$result = pluralise($in, $count);
15
		$this->assertSame($expect, $result);
16
	}
17
18
	public function pluralise_provider() {
19
		return [
20
			['test', 3, 'tests'],
21
			['test', 1, 'test'],
22
			['is', 3, 'are'],
23
			['Is', 3, 'are'],
24
			['is', 1, 'is'],
25
			['test', 0, 'tests'],
26
			['test', 0.5, 'tests'],
27
		];
28
	}
29
30
}
31