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 — master ( 9c91a5...05804d )
by Dan
33s queued 16s
created

pluraliseTest::pluralise_provider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 8
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 9
rs 10
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