mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 02:02:29 +01:00 
			
		
		
		
	Moved UnitTests to tests/ and Skills to src/
This commit is contained in:
		
							
								
								
									
										26
									
								
								tests/TrueSkill/TwoPlayerTrueSkillCalculatorTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								tests/TrueSkill/TwoPlayerTrueSkillCalculatorTest.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
<?php
 | 
			
		||||
require_once 'PHPUnit/Framework.php';
 | 
			
		||||
require_once 'PHPUnit/TextUI/TestRunner.php';
 | 
			
		||||
 | 
			
		||||
require_once(dirname(__FILE__) . '/../../Skills/TrueSkill/TwoPlayerTrueSkillCalculator.php');
 | 
			
		||||
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);
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user