@@ -29,4 +29,148 @@ public function test_get_requests_failure(): void
2929 ->get ('/this-route-does-not-exist ' )
3030 ->assertOk ();
3131 }
32+
33+ public function test_head_requests (): void
34+ {
35+ $ this
36+ ->http
37+ ->head ('/test ' )
38+ ->assertOk ();
39+ }
40+
41+ public function test_head_requests_failure (): void
42+ {
43+ $ this ->expectException (AssertionFailedError::class);
44+
45+ $ this
46+ ->http
47+ ->head ('/this-route-does-not-exist ' )
48+ ->assertOk ();
49+ }
50+
51+ public function test_post_requests (): void
52+ {
53+ $ this
54+ ->http
55+ ->post ('/test ' )
56+ ->assertOk ();
57+ }
58+
59+ public function test_post_requests_failure (): void
60+ {
61+ $ this ->expectException (AssertionFailedError::class);
62+
63+ $ this
64+ ->http
65+ ->post ('/this-route-does-not-exist ' )
66+ ->assertOk ();
67+ }
68+
69+ public function test_put_requests (): void
70+ {
71+ $ this
72+ ->http
73+ ->put ('/test ' )
74+ ->assertOk ();
75+ }
76+
77+ public function test_put_requests_failure (): void
78+ {
79+ $ this ->expectException (AssertionFailedError::class);
80+
81+ $ this
82+ ->http
83+ ->put ('/this-route-does-not-exist ' )
84+ ->assertOk ();
85+ }
86+
87+ public function test_delete_requests (): void
88+ {
89+ $ this
90+ ->http
91+ ->delete ('/test ' )
92+ ->assertOk ();
93+ }
94+
95+ public function test_delete_requests_failure (): void
96+ {
97+ $ this ->expectException (AssertionFailedError::class);
98+
99+ $ this
100+ ->http
101+ ->delete ('/this-route-does-not-exist ' )
102+ ->assertOk ();
103+ }
104+
105+ public function test_connect_requests (): void
106+ {
107+ $ this
108+ ->http
109+ ->connect ('/test ' )
110+ ->assertOk ();
111+ }
112+
113+ public function test_connect_requests_failure (): void
114+ {
115+ $ this ->expectException (AssertionFailedError::class);
116+
117+ $ this
118+ ->http
119+ ->connect ('/this-route-does-not-exist ' )
120+ ->assertOk ();
121+ }
122+
123+ public function test_options_requests (): void
124+ {
125+ $ this
126+ ->http
127+ ->options ('/test ' )
128+ ->assertOk ();
129+ }
130+
131+ public function test_options_requests_failure (): void
132+ {
133+ $ this ->expectException (AssertionFailedError::class);
134+
135+ $ this
136+ ->http
137+ ->options ('/this-route-does-not-exist ' )
138+ ->assertOk ();
139+ }
140+
141+ public function test_trace_requests (): void
142+ {
143+ $ this
144+ ->http
145+ ->trace ('/test ' )
146+ ->assertOk ();
147+ }
148+
149+ public function test_trace_requests_failure (): void
150+ {
151+ $ this ->expectException (AssertionFailedError::class);
152+
153+ $ this
154+ ->http
155+ ->trace ('/this-route-does-not-exist ' )
156+ ->assertOk ();
157+ }
158+
159+ public function test_patch_requests (): void
160+ {
161+ $ this
162+ ->http
163+ ->patch ('/test ' )
164+ ->assertOk ();
165+ }
166+
167+ public function test_patch_requests_failure (): void
168+ {
169+ $ this ->expectException (AssertionFailedError::class);
170+
171+ $ this
172+ ->http
173+ ->patch ('/this-route-does-not-exist ' )
174+ ->assertOk ();
175+ }
32176}
0 commit comments