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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A pluralise_provider() 0 9 1
A test_pluralise() 0 3 1
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