mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
29 lines
967 B
PHP
29 lines
967 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DNW\Skills\Tests\TrueSkill;
|
|
|
|
use DNW\Skills\TrueSkill\FactorGraphTrueSkillCalculator;
|
|
use DNW\Skills\SkillCalculatorSupportedOptions;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class FactorGraphTeamTrueSkillCalculatorTest extends TestCase
|
|
{
|
|
public function testFactorGraphTrueSkillCalculator(): void
|
|
{
|
|
$calculator = new FactorGraphTrueSkillCalculator();
|
|
|
|
TrueSkillCalculatorTests::testAllTwoPlayerScenarios($this, $calculator);
|
|
TrueSkillCalculatorTests::testAllTwoTeamScenarios($this, $calculator);
|
|
TrueSkillCalculatorTests::testAllMultipleTeamScenarios($this, $calculator);
|
|
TrueSkillCalculatorTests::testPartialPlayScenarios($this, $calculator);
|
|
}
|
|
|
|
public function testMethodisSupported(): void
|
|
{
|
|
$calculator = new FactorGraphTrueSkillCalculator();
|
|
$this->assertEquals(TRUE, $calculator->isSupported(SkillCalculatorSupportedOptions::PARTIAL_PLAY));
|
|
}
|
|
}
|