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
Bug
introduced
by
![]() |
|||
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 |