SteamCountryTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetAll() 0 3 1
A testReturnedType() 0 4 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SteamMarketProviders\Enums\Tests;
6
7
use SteamMarketProviders\Enums\SteamCountry;
8
use PHPUnit\Framework\TestCase;
9
10
class SteamCountryTest extends TestCase
11
{
12
    public function testGetAll(): void
13
    {
14
        $this->assertIsArray(SteamCountry::cases());
15
    }
16
17
    public function testReturnedType(): void
18
    {
19
        foreach (SteamCountry::cases() as $data) {
20
            $this->assertIsString($data->value);
21
        }
22
    }
23
}
24