File tree Expand file tree Collapse file tree 7 files changed +9
-39
lines changed
src/Providers/Http/Contracts Expand file tree Collapse file tree 7 files changed +9
-39
lines changed Original file line number Diff line number Diff line change 9
9
/**
10
10
* Interface for HTTP request authentication.
11
11
*
12
- * @since 1.0.0
12
+ * @since n.e.x.t
13
13
*/
14
14
interface RequestAuthenticationInterface
15
15
{
16
16
/**
17
17
* Authenticates an HTTP request.
18
18
*
19
- * @since 1.0.0
19
+ * @since n.e.x.t
20
20
*
21
21
* @param Request $request The request to authenticate.
22
22
* @return void
@@ -26,7 +26,7 @@ public function authenticate(Request $request): void;
26
26
/**
27
27
* Returns the JSON schema for this authentication.
28
28
*
29
- * @since 1.0.0
29
+ * @since n.e.x.t
30
30
*
31
31
* @return array<string, mixed> The JSON schema.
32
32
*/
Original file line number Diff line number Diff line change 7
7
/**
8
8
* Interface for models that require HTTP transport capabilities.
9
9
*
10
- * @since 1.0.0
10
+ * @since n.e.x.t
11
11
*/
12
12
interface WithHttpTransporterInterface
13
13
{
14
14
/**
15
15
* Sets the HTTP transporter.
16
16
*
17
- * @since 1.0.0
17
+ * @since n.e.x.t
18
18
*
19
19
* @param HttpTransporterInterface $transporter The HTTP transporter instance.
20
20
* @return void
@@ -24,7 +24,7 @@ public function setHttpTransporter(HttpTransporterInterface $transporter): void;
24
24
/**
25
25
* Returns the HTTP transporter.
26
26
*
27
- * @since 1.0.0
27
+ * @since n.e.x.t
28
28
*
29
29
* @return HttpTransporterInterface The HTTP transporter instance.
30
30
*/
Original file line number Diff line number Diff line change 7
7
/**
8
8
* Interface for models that support request authentication.
9
9
*
10
- * @since 1.0.0
10
+ * @since n.e.x.t
11
11
*/
12
12
interface WithRequestAuthenticationInterface
13
13
{
14
14
/**
15
15
* Sets the request authentication.
16
16
*
17
- * @since 1.0.0
17
+ * @since n.e.x.t
18
18
*
19
19
* @param RequestAuthenticationInterface $authentication The authentication instance.
20
20
* @return void
@@ -24,7 +24,7 @@ public function setRequestAuthentication(RequestAuthenticationInterface $authent
24
24
/**
25
25
* Returns the request authentication.
26
26
*
27
- * @since 1.0.0
27
+ * @since n.e.x.t
28
28
*
29
29
* @return RequestAuthenticationInterface The authentication instance.
30
30
*/
Original file line number Diff line number Diff line change 8
8
* Trait for testing array transformation functionality.
9
9
*
10
10
* Provides common assertions for DTOs that implement WithArrayTransformationInterface.
11
- *
12
- * @since 1.0.0
13
11
*/
14
12
trait ArrayTransformationTestTrait
15
13
{
Original file line number Diff line number Diff line change 11
11
/**
12
12
* Tests for the HttpMethodEnum class.
13
13
*
14
- * @since n.e.x.t
15
- *
16
14
* @covers \WordPress\AiClient\Providers\Http\Enums\HttpMethodEnum
17
15
*/
18
16
class HttpMethodEnumTest extends TestCase
@@ -21,8 +19,6 @@ class HttpMethodEnumTest extends TestCase
21
19
22
20
/**
23
21
* {@inheritDoc}
24
- *
25
- * @since n.e.x.t
26
22
*/
27
23
protected function getEnumClass (): string
28
24
{
@@ -31,8 +27,6 @@ protected function getEnumClass(): string
31
27
32
28
/**
33
29
* {@inheritDoc}
34
- *
35
- * @since n.e.x.t
36
30
*/
37
31
protected function getExpectedValues (): array
38
32
{
@@ -52,8 +46,6 @@ protected function getExpectedValues(): array
52
46
/**
53
47
* Tests that safe methods are correctly identified.
54
48
*
55
- * @since n.e.x.t
56
- *
57
49
* @return void
58
50
*/
59
51
public function testIsSafe (): void
@@ -73,8 +65,6 @@ public function testIsSafe(): void
73
65
/**
74
66
* Tests that idempotent methods are correctly identified.
75
67
*
76
- * @since n.e.x.t
77
- *
78
68
* @return void
79
69
*/
80
70
public function testIsIdempotent (): void
@@ -94,8 +84,6 @@ public function testIsIdempotent(): void
94
84
/**
95
85
* Tests that methods with bodies are correctly identified.
96
86
*
97
- * @since n.e.x.t
98
- *
99
87
* @return void
100
88
*/
101
89
public function testHasBody (): void
Original file line number Diff line number Diff line change 11
11
/**
12
12
* Tests for HttpTransporterFactory class.
13
13
*
14
- * @since n.e.x.t
15
- *
16
14
* @covers \WordPress\AiClient\Providers\Http\HttpTransporterFactory
17
15
*/
18
16
class HttpTransporterFactoryTest extends TestCase
19
17
{
20
18
/**
21
19
* Tests creating an HTTP transporter.
22
20
*
23
- * @since n.e.x.t
24
- *
25
21
* @covers ::createTransporter
26
22
*
27
23
* @return void
Original file line number Diff line number Diff line change 16
16
/**
17
17
* Tests for HttpTransporter class.
18
18
*
19
- * @since n.e.x.t
20
- *
21
19
* @covers \WordPress\AiClient\Providers\Http\HttpTransporter
22
20
*/
23
21
class HttpTransporterTest extends TestCase
@@ -40,8 +38,6 @@ class HttpTransporterTest extends TestCase
40
38
/**
41
39
* Sets up the test fixture.
42
40
*
43
- * @since n.e.x.t
44
- *
45
41
* @return void
46
42
*/
47
43
protected function setUp (): void
@@ -60,8 +56,6 @@ protected function setUp(): void
60
56
/**
61
57
* Tests sending a simple GET request.
62
58
*
63
- * @since n.e.x.t
64
- *
65
59
* @covers ::send
66
60
* @covers ::convertToPsr7Request
67
61
* @covers ::convertFromPsr7Response
@@ -92,8 +86,6 @@ public function testSendGetRequest(): void
92
86
/**
93
87
* Tests sending a POST request with body.
94
88
*
95
- * @since n.e.x.t
96
- *
97
89
* @covers ::send
98
90
* @covers ::convertToPsr7Request
99
91
* @covers ::convertFromPsr7Response
@@ -131,8 +123,6 @@ public function testSendPostRequestWithBody(): void
131
123
/**
132
124
* Tests handling headers with multiple values.
133
125
*
134
- * @since n.e.x.t
135
- *
136
126
* @covers ::send
137
127
* @covers ::convertToPsr7Request
138
128
* @covers ::convertFromPsr7Response
@@ -170,8 +160,6 @@ public function testMultipleHeaderValues(): void
170
160
/**
171
161
* Tests using discovery when no dependencies provided.
172
162
*
173
- * @since n.e.x.t
174
- *
175
163
* @covers ::__construct
176
164
*
177
165
* @return void
You can’t perform that action at this time.
0 commit comments