2024-02-02 14:09:07 +00:00
|
|
|
<?php declare(strict_types=1);
|
2022-07-05 15:55:47 +02:00
|
|
|
|
|
|
|
namespace DNW\Skills\Tests\TrueSkill;
|
2010-09-23 22:14:56 -04:00
|
|
|
|
2022-07-05 15:33:34 +02:00
|
|
|
use DNW\Skills\TrueSkill\FactorGraphTrueSkillCalculator;
|
2024-02-01 10:50:18 +00:00
|
|
|
use DNW\Skills\SkillCalculatorSupportedOptions;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
2010-09-23 22:14:56 -04:00
|
|
|
|
2022-07-05 15:34:49 +02:00
|
|
|
class FactorGraphTeamTrueSkillCalculatorTest extends TestCase
|
2010-09-23 22:14:56 -04:00
|
|
|
{
|
2023-08-01 11:26:38 +00:00
|
|
|
public function testFactorGraphTrueSkillCalculator(): void
|
2016-05-24 15:12:29 +02:00
|
|
|
{
|
2010-09-23 22:14:56 -04:00
|
|
|
$calculator = new FactorGraphTrueSkillCalculator();
|
2016-05-24 15:12:29 +02:00
|
|
|
|
2010-09-23 22:14:56 -04:00
|
|
|
TrueSkillCalculatorTests::testAllTwoPlayerScenarios($this, $calculator);
|
|
|
|
TrueSkillCalculatorTests::testAllTwoTeamScenarios($this, $calculator);
|
2010-10-03 17:42:31 -04:00
|
|
|
TrueSkillCalculatorTests::testAllMultipleTeamScenarios($this, $calculator);
|
2010-10-03 19:16:17 -04:00
|
|
|
TrueSkillCalculatorTests::testPartialPlayScenarios($this, $calculator);
|
2010-09-23 22:14:56 -04:00
|
|
|
}
|
2024-02-01 10:50:18 +00:00
|
|
|
|
|
|
|
public function testMethodisSupported(): void
|
|
|
|
{
|
|
|
|
$calculator = new FactorGraphTrueSkillCalculator();
|
|
|
|
$this->assertEquals(true, $calculator->isSupported(SkillCalculatorSupportedOptions::PARTIAL_PLAY));
|
|
|
|
}
|
2022-07-05 15:55:47 +02:00
|
|
|
}
|