mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-19 00:08:37 +00:00
Pint applied for formatting
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
<?php namespace DNW\Skills\Tests;
|
||||
<?php
|
||||
|
||||
namespace DNW\Skills\Tests;
|
||||
|
||||
use DNW\Skills\RankSorter;
|
||||
|
||||
@ -6,13 +8,13 @@ class RankSorterTest extends TestCase
|
||||
{
|
||||
public function testSort()
|
||||
{
|
||||
$team1 = array("a" => 1, "b" => 2);
|
||||
$team2 = array("c" => 3, "d" => 4);
|
||||
$team3 = array("e" => 5, "f" => 6);
|
||||
$team1 = ['a' => 1, 'b' => 2];
|
||||
$team2 = ['c' => 3, 'd' => 4];
|
||||
$team3 = ['e' => 5, 'f' => 6];
|
||||
|
||||
$teams = array($team1, $team2, $team3);
|
||||
$teams = [$team1, $team2, $team3];
|
||||
|
||||
$teamRanks = array(3, 1, 2);
|
||||
$teamRanks = [3, 1, 2];
|
||||
|
||||
$sortedRanks = RankSorter::sort($teams, $teamRanks);
|
||||
|
||||
@ -30,4 +32,4 @@ class RankSorterTest extends TestCase
|
||||
$this->assertEquals($teams[1], $sortedRanks[1]);
|
||||
$this->assertEquals($teams[2], $sortedRanks[2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user