Completed
Push — master ( a23f84...2e53d7 )
by Michael
04:05
created

StvBallotTest::testRawBallotValues()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
namespace Tests\Michaelc\Voting;
4
5
use Michaelc\Voting\STV\Ballot;
6
7
class StvBallotTest extends \PHPUnit_Framework_TestCase
8
{
9
	public function testRawBallotValues()
10
	{
11
		$ranking = [4, 5, 8];
12
		$ballot = new Ballot($ranking);
13
		$this->assertEquals($ballot->getRanking(), $ranking);
14
		$this->assertEquals($ballot->getWeight(), 1.0);
15
		$this->assertEquals($ballot->getLevelUsed(), 0);
16
	}
17
}
18