2010-08-28 22:05:41 -04:00
|
|
|
<?php
|
|
|
|
require_once 'PHPUnit/Framework.php';
|
|
|
|
require_once 'PHPUnit/TextUI/TestRunner.php';
|
|
|
|
|
2010-10-14 21:51:43 -04:00
|
|
|
require_once(dirname(__FILE__) . '/../../Skills/TrueSkill/TwoPlayerTrueSkillCalculator.php');
|
2010-08-28 22:05:41 -04:00
|
|
|
require_once(dirname(__FILE__) . '/TrueSkillCalculatorTests.php');
|
|
|
|
|
|
|
|
use \PHPUnit_Framework_TestCase;
|
|
|
|
use Moserware\Skills\TrueSkill\TwoPlayerTrueSkillCalculator;
|
|
|
|
|
|
|
|
class TwoPlayerTrueSkillCalculatorTest extends PHPUnit_Framework_TestCase
|
|
|
|
{
|
|
|
|
public function testTwoPlayerTrueSkillCalculator()
|
|
|
|
{
|
|
|
|
$calculator = new TwoPlayerTrueSkillCalculator();
|
|
|
|
|
|
|
|
// We only support two players
|
|
|
|
TrueSkillCalculatorTests::testAllTwoPlayerScenarios($this, $calculator);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$testSuite = new \PHPUnit_Framework_TestSuite();
|
|
|
|
$testSuite->addTest( new TwoPlayerTrueSkillCalculatorTest("testTwoPlayerTrueSkillCalculator"));
|
|
|
|
|
|
|
|
\PHPUnit_TextUI_TestRunner::run($testSuite);
|
|
|
|
?>
|