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 — dependabot/composer/phpunit/ph... ( 7173cc...f8df30 )
by
unknown
12:14 queued 06:41
created

PluraliseTest::pluralise_provider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 8
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace SmrTest\lib\DefaultGame;
4
5
use PHPUnit\Framework\TestCase;
6
7
/**
8
 * @covers ::pluralise
9
 */
10
class PluraliseTest extends TestCase {
11
12
	/**
13
	 * @dataProvider pluralise_provider
14
	 */
15
	public function test_pluralise(string $in, mixed $count, string $expect): void {
16
		$result = pluralise($in, $count);
17
		$this->assertSame($expect, $result);
18
	}
19
20
	public function pluralise_provider(): array {
21
		return [
22
			['test', 3, 'tests'],
23
			['test', 1, 'test'],
24
			['is', 3, 'are'],
25
			['Is', 3, 'are'],
26
			['is', 1, 'is'],
27
			['test', 0, 'tests'],
28
			['test', 0.5, 'tests'],
29
		];
30
	}
31
32
}
33