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

RoundTest::check_name_setup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 9
rs 10
c 1
b 0
f 0
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