Skip to content

Commit f96a768

Browse files
committed
Add return types to test methods
1 parent 3e2af9f commit f96a768

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Feature/Console/Commands/CurlCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CurlCommandTest extends TestCase
1212
{
1313
#[Test]
1414
#[DataProvider('curlCommandFixtures')]
15-
public function it_converts_curl_requests_to_http_client_code($fixture)
15+
public function it_converts_curl_requests_to_http_client_code($fixture): void
1616
{
1717
$code = Artisan::call('shift:' . $this->fixture($fixture . '.in'));
1818
$output = trim(Artisan::output());
@@ -21,23 +21,23 @@ public function it_converts_curl_requests_to_http_client_code($fixture)
2121
$this->assertSame($this->fixture($fixture . '.out'), $output);
2222
}
2323

24-
public function test_it_throw_exception_when_for_invalid_url()
24+
public function test_it_throw_exception_when_for_invalid_url(): void
2525
{
2626
$this->expectException(InvalidArgumentException::class);
2727
$this->expectExceptionMessage('The "https://{domain:port}/api/{id}/" URL is invalid.');
2828

2929
Artisan::call('shift:curl -X GET "https://{domain:port}/api/{id}/"');
3030
}
3131

32-
public function test_it_throw_exception_when_for_invalid_headers()
32+
public function test_it_throw_exception_when_for_invalid_headers(): void
3333
{
3434
$this->expectException(InvalidArgumentException::class);
3535
$this->expectExceptionMessage('The "foo" header must be a key/value pair separated by ":".');
3636

3737
Artisan::call("shift:curl https://example.com --header 'foo'");
3838
}
3939

40-
public static function curlCommandFixtures()
40+
public static function curlCommandFixtures(): array
4141
{
4242
return [
4343
'GET request' => ['basic-get'],

0 commit comments

Comments
 (0)