mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-10-31 00:12:29 +01:00 
			
		
		
		
	
		
			
	
	
		
			23 lines
		
	
	
		
			628 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			628 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
|  | <?php | ||
|  | 
 | ||
|  | declare(strict_types=1); | ||
|  | 
 | ||
|  | namespace DNW\Skills\Tests; | ||
|  | 
 | ||
|  | use DNW\Skills\GameInfo; | ||
|  | use PHPUnit\Framework\TestCase; | ||
|  | 
 | ||
|  | class GameInfoTest extends TestCase | ||
|  | { | ||
|  |     public function testMembers(): void | ||
|  |     { | ||
|  |         $gi = new GameInfo(1, 2, 3, 4, 5); | ||
|  |         $this->assertEquals(1, $gi->getInitialMean()); | ||
|  |         $this->assertEquals(2, $gi->getInitialStandardDeviation()); | ||
|  |         $this->assertEquals(3, $gi->getBeta()); | ||
|  |         $this->assertEquals(4, $gi->getDynamicsFactor()); | ||
|  |         $this->assertEquals(5, $gi->getDrawProbability()); | ||
|  |         $this->assertInstanceOf(\DNW\Skills\Rating::class, $gi->getDefaultRating()); | ||
|  |     } | ||
|  | } |