Passed
Push — main ( 40d4d0...b1f2dd )
by N.
05:04
created

SpelTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
/**
4
 * Klass SpelTest.
5
 * @author Niklas Dougherty
6
 */
7
8
declare(strict_types=1);
9
10
namespace Tips\Tests\Klasser;
11
12
use PHPUnit\Framework\Attributes\TestDox;
13
use PHPUnit\Framework\TestCase;
14
use Tips\Klasser\Spel\Sekvenser;
15
use Tips\Klasser\Spel\Komplett;
16
use Tips\Klasser\Spel\Spara;
17
use Tips\Klasser\Spel\Omgang;
18
use Tips\Klasser\Spel;
19
use Tips\Klasser\Preludium;
20
21
/**
22
 * Klass SpelTest.
23
 */
24
class SpelTest extends TestCase
25
{
26
	/**
27
	 * Construct object with argument and verify that the object has the expected properties.
28
	 */
29
	public function testCreateObject(): void
30
	{
31
		new Preludium();
32
		$this->assertInstanceOf("\Tips\Klasser\Spel\Sekvenser", new Sekvenser());
33
		$this->assertInstanceOf("\Tips\Klasser\Spel\Komplett", new Komplett());
34
		$this->assertInstanceOf("\Tips\Klasser\Spel\Spara", new Spara());
35
		$this->assertInstanceOf("\Tips\Klasser\Spel\Omgang", new Omgang());
36
		$spel = new Spel();
37
		$this->assertObjectHasProperty('filnamn', $spel);
38
	}
39
}
40