Issues (2)

tests/SteamAppTest.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SteamMarketProviders\Enums\Tests;
6
7
use SteamMarketProviders\Enums\SteamApp;
8
use PHPUnit\Framework\TestCase;
9
10
class SteamAppTest extends TestCase
11
{
12
    public function testGetAll(): void
13
    {
14
        $this->assertIsArray(SteamApp::cases());
15
    }
16
17
    public function testReturnedType(): void
18
    {
19
        foreach (SteamApp::cases() as $data) {
20
            $this->assertIsInt($data->value);
21
        }
22
    }
23
24
    public function testInvokableCases(): void
25
    {
26
        $this->assertEquals(SteamApp::CSGO(), 730);
0 ignored issues
show
The method CSGO() does not exist on SteamMarketProviders\Enums\SteamApp. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

26
        $this->assertEquals(SteamApp::/** @scrutinizer ignore-call */ CSGO(), 730);
Loading history...
27
    }
28
29
    public function testNames(): void
30
    {
31
        $this->assertIsArray(SteamApp::names());
32
    }
33
34
    public function testValues(): void
35
    {
36
        $this->assertIsArray(SteamApp::values());
37
    }
38
39
    public function testOptions(): void
40
    {
41
        $this->assertIsArray(SteamApp::options());
42
    }
43
}
44