SteamPlatformTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 11
rs 10
c 1
b 0
f 0
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testReturnedType() 0 4 2
A testGetAll() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SteamMarketProviders\Enums\Tests;
6
7
use SteamMarketProviders\Enums\SteamLanguage;
8
use SteamMarketProviders\Enums\SteamPlatform;
9
use PHPUnit\Framework\TestCase;
10
11
class SteamPlatformTest extends TestCase
12
{
13
    public function testGetAll(): void
14
    {
15
        $this->assertIsArray(SteamPlatform::cases());
16
    }
17
18
    public function testReturnedType(): void
19
    {
20
        foreach (SteamLanguage::cases() as $data) {
21
            $this->assertIsString($data->value);
22
        }
23
    }
24
//
25
//
26
//    public function testInvokableCases(): void
27
//    {
28
//
29
//    }
30
//
31
//    public function testNames(): void
32
//    {
33
//
34
//    }
35
//
36
//    public function testValues(): void
37
//    {
38
//
39
//    }
40
//
41
//    public function testOptions(): void
42
//    {
43
//
44
//    }
45
}
46