|
18 | 18 | trait Psr7Assertions
|
19 | 19 | {
|
20 | 20 |
|
21 |
| - public static function assertRequestHasUri(RequestInterface $request, string $uri) |
| 21 | + public static function assertRequestHasUri(RequestInterface $request, string $uri): void |
22 | 22 | {
|
23 | 23 | Assert::assertThat($request, static::hasUri($uri));
|
24 | 24 | }
|
25 | 25 |
|
26 |
| - public static function assertMessageHasHeader(MessageInterface $message, string $headerName, $headerValue = null) |
| 26 | + public static function assertMessageHasHeader(MessageInterface $message, string $headerName, $headerValue = null): void |
27 | 27 | {
|
28 | 28 | Assert::assertThat($message, static::hasHeader($headerName, $headerValue));
|
29 | 29 | }
|
30 | 30 |
|
31 |
| - public static function assertMessageHasHeaders(MessageInterface $message, array $constraints) |
| 31 | + public static function assertMessageHasHeaders(MessageInterface $message, array $constraints): void |
32 | 32 | {
|
33 | 33 | Assert::assertThat($message, static::hasHeaders($constraints));
|
34 | 34 | }
|
35 | 35 |
|
36 |
| - public static function assertMessageBodyMatches(MessageInterface $message, $constraint) |
| 36 | + public static function assertMessageBodyMatches(MessageInterface $message, $constraint): void |
37 | 37 | {
|
38 | 38 | Assert::assertThat($message, static::bodyMatches($constraint));
|
39 | 39 | }
|
40 | 40 |
|
41 |
| - public static function assertMessageBodyMatchesJson(MessageInterface $message, array $jsonConstraints) |
| 41 | + public static function assertMessageBodyMatchesJson(MessageInterface $message, array $jsonConstraints): void |
42 | 42 | {
|
43 | 43 | Assert::assertThat($message, static::bodyMatchesJson($jsonConstraints));
|
44 | 44 | }
|
45 | 45 |
|
46 |
| - public static function assertResponseHasStatus(ResponseInterface $response, int $status) |
| 46 | + public static function assertResponseHasStatus(ResponseInterface $response, int $status): void |
47 | 47 | {
|
48 | 48 | Assert::assertThat($response, static::hasStatus($status));
|
49 | 49 | }
|
50 | 50 |
|
51 |
| - public static function assertResponseIsSuccess(ResponseInterface $response) |
| 51 | + public static function assertResponseIsSuccess(ResponseInterface $response): void |
52 | 52 | {
|
53 | 53 | Assert::assertThat($response, static::isSuccess());
|
54 | 54 | }
|
55 | 55 |
|
56 |
| - public static function assertResponseIsClientError(ResponseInterface $response) |
| 56 | + public static function assertResponseIsClientError(ResponseInterface $response): void |
57 | 57 | {
|
58 | 58 | Assert::assertThat($response, static::isClientError());
|
59 | 59 | }
|
60 | 60 |
|
61 |
| - public static function assertResponseIsServerError(ResponseInterface $response) |
| 61 | + public static function assertResponseIsServerError(ResponseInterface $response): void |
62 | 62 | {
|
63 | 63 | Assert::assertThat($response, static::isServerError());
|
64 | 64 | }
|
65 | 65 |
|
66 |
| - public static function assertRequestHasMethod(RequestInterface $request, string $method) |
| 66 | + public static function assertRequestHasMethod(RequestInterface $request, string $method): void |
67 | 67 | {
|
68 | 68 | Assert::assertThat($request, static::hasMethod($method));
|
69 | 69 | }
|
70 | 70 |
|
71 |
| - public static function assertRequestIsGet(RequestInterface $request) |
| 71 | + public static function assertRequestIsGet(RequestInterface $request): void |
72 | 72 | {
|
73 | 73 | Assert::assertThat($request, static::isGet());
|
74 | 74 | }
|
75 | 75 |
|
76 |
| - public static function assertRequestIsPost(RequestInterface $request) |
| 76 | + public static function assertRequestIsPost(RequestInterface $request): void |
77 | 77 | {
|
78 | 78 | Assert::assertThat($request, static::isPost());
|
79 | 79 | }
|
80 | 80 |
|
81 |
| - public static function assertRequestIsPut(RequestInterface $request) |
| 81 | + public static function assertRequestIsPut(RequestInterface $request): void |
82 | 82 | {
|
83 | 83 | Assert::assertThat($request, static::isPut());
|
84 | 84 | }
|
85 | 85 |
|
86 |
| - public static function assertRequestIsDelete(RequestInterface $request) |
| 86 | + public static function assertRequestIsDelete(RequestInterface $request): void |
87 | 87 | {
|
88 | 88 | Assert::assertThat($request, static::isDelete());
|
89 | 89 | }
|
|
0 commit comments