Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
49 | 10 | protected static function validateValues(string $baseUrl, string $version, string $apiKey): bool |
|
50 | { |
||
51 | 10 | Assert::that($baseUrl) |
|
52 | 10 | ->notBlank('baseUrl was blank/empty') |
|
53 | 9 | ->url('baseUrl was not a valid url'); |
|
54 | |||
55 | 8 | Assert::that($version) |
|
56 | 8 | ->regex('/v\d+/', 'Version did not match expected pattern'); |
|
57 | |||
58 | 7 | Assert::that($apiKey) |
|
59 | 7 | ->notBlank('apiKey was blank/empty'); |
|
60 | |||
61 | 6 | return true; |
|
62 | } |
||
79 |