| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class OmgangTest 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 | $omg = new Omgang(); |
||
| 33 | $this->expectOutputRegex('*Resultat*'); |
||
| 34 | $this->assertInstanceOf("\Tips\Klasser\Omgang", $omg); |
||
| 35 | $this->assertInstanceOf("\Tips\Klasser\Spel", $spel = new Spel()); |
||
| 36 | $this->assertInstanceOf("\Tips\Klasser\Tips", $tips = new Tips($spel)); |
||
| 37 | $this->assertObjectHasProperty('filnamn', $spel); |
||
| 38 | $this->assertTrue($spel->omgång_existerar($spel->omgång)); |
||
| 39 | $this->assertInstanceOf("\Tips\Klasser\Omgang\Uppmarkning", new Uppmarkning($tips)); |
||
| 40 | $this->assertInstanceOf("\Tips\Klasser\Generera", new Generera($tips)); |
||
| 41 | } |
||
| 43 |