Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.2559 |
Changes | 0 |
1 | <?php |
||
26 | 1 | final public static function assertCurlMultiStatusCodeSame(int $expectedStatusCode, int $actualStatusCode): void |
|
27 | { |
||
28 | 1 | if ($expectedStatusCode === $actualStatusCode) { |
|
29 | 1 | return; |
|
30 | } |
||
31 | |||
32 | /** @var string $message */ |
||
33 | $message = curl_multi_strerror($actualStatusCode); |
||
34 | |||
35 | throw new self($message, $actualStatusCode); |
||
36 | } |
||
38 |