Completed
Push — master ( 5d9f44...4b85e8 )
by Tomáš
03:31
created

RoundTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 13
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A check_name_setup() 0 9 1
1
<?php
2
use PHPUnit\Framework\TestCase;
3
4
/**
5
 *
6
 */
7
class RoundTest extends TestCase
8
{
9
10
	/** @test */
11
	public function check_name_setup() {
12
		$round = new \TournamentGenerator\Round('Round name 1');
13
14
		$this->assertEquals('Round name 1', $round->getName());
15
		$this->assertEquals('Round name 1', (string) $round);
16
17
		$round->setName('Round name 2');
18
19
		$this->assertEquals('Round name 2', $round->getName());
20
	}
21
22
}
23