mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-19 08:18:38 +00:00
PHPstan on test code
This commit is contained in:
@ -986,13 +986,13 @@ class TrueSkillCalculatorTests
|
||||
self::assertMatchQuality($testClass, 0.44721358745011336, $matchQuality);
|
||||
}
|
||||
|
||||
private static function assertRating(TestCase $testClass, $expectedMean, $expectedStandardDeviation, $actual): void
|
||||
private static function assertRating(TestCase $testClass, float $expectedMean, float $expectedStandardDeviation, Rating $actual): void
|
||||
{
|
||||
$testClass->assertEqualsWithDelta($expectedMean, $actual->getMean(), self::ERROR_TOLERANCE_TRUESKILL);
|
||||
$testClass->assertEqualsWithDelta($expectedStandardDeviation, $actual->getStandardDeviation(), self::ERROR_TOLERANCE_TRUESKILL);
|
||||
}
|
||||
|
||||
private static function assertMatchQuality(TestCase $testClass, $expectedMatchQuality, $actualMatchQuality): void
|
||||
private static function assertMatchQuality(TestCase $testClass, float $expectedMatchQuality, float $actualMatchQuality): void
|
||||
{
|
||||
$testClass->assertEqualsWithDelta($expectedMatchQuality, $actualMatchQuality, self::ERROR_TOLERANCE_MATCH_QUALITY);
|
||||
}
|
||||
|
Reference in New Issue
Block a user