5 require_once(CONST_LibDir.'/Result.php');
7 function mkRankedResult($iId, $iResultRank)
9 $oResult = new Result($iId);
10 $oResult->iResultRank = $iResultRank;
16 class ResultTest extends \PHPUnit\Framework\TestCase
18 public function testSplitResults()
20 $aSplitResults = Result::splitResults(array(
29 $aHead = array_keys($aSplitResults['head']);
30 $aTail = array_keys($aSplitResults['tail']);
32 $this->assertEquals($aHead, array(2, 3));
33 $this->assertEquals($aTail, array(1, 4, 5));