Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 259acdf

Browse files
committed
More test property type simplifications
1 parent 5b26840 commit 259acdf

File tree

4 files changed

+13
-28
lines changed

4 files changed

+13
-28
lines changed

tests/Certbot/HandlerTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@
2222

2323
class HandlerTest extends TestCase
2424
{
25-
/** @var ShellExec|MockObject */
26-
private MockObject $shellExec;
27-
28-
private Handler $handler;
25+
private ShellExec|MockObject $shellExec;
26+
private Handler $handler;
2927

3028
private string $certsBasePath = __DIR__ . '/fixtures';
31-
32-
private string $tmpCertPath = '/tmp/foo.bar';
29+
private string $tmpCertPath = '/tmp/foo.bar';
3330

3431
public function setUp(): void
3532
{

tests/Command/UpdateCertificatesCommandEndToEndTest.php

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,12 @@
2121
class UpdateCertificatesCommandEndToEndTest extends TestCase
2222
{
2323
private const CERTS_BASE_PATH = __DIR__ . '/fixtures';
24+
private const MAIN_DOMAIN = 'foo.bar';
25+
private const KONG_ENDPOINT = 'http://foo/bar';
2426

25-
private const MAIN_DOMAIN = 'foo.bar';
26-
27-
private const KONG_ENDPOINT = 'http://foo/bar';
28-
29-
/** @var ClientInterface|MockObject */
30-
private MockObject $httpClient;
31-
32-
/** @var ShellExec|MockObject */
33-
private MockObject $shellExec;
34-
35-
private CommandTester $command;
27+
private ClientInterface|MockObject $httpClient;
28+
private ShellExec|MockObject $shellExec;
29+
private CommandTester $command;
3630

3731
public function setUp(): void
3832
{

tests/Command/UpdateCertificatesCommandTest.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@
1919

2020
class UpdateCertificatesCommandTest extends TestCase
2121
{
22-
/** @var Kong|MockObject */
23-
private MockObject $kong;
24-
25-
/** @var Certbot|MockObject */
26-
private MockObject $certbot;
27-
28-
private CommandTester $command;
22+
private Kong|MockObject $kong;
23+
private Certbot|MockObject $certbot;
24+
private CommandTester $command;
2925

3026
public function setUp(): void
3127
{

tests/Kong/HandlerTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ class HandlerTest extends TestCase
2020
{
2121
private const KONG_ADMIN_URI = 'http://foo/bar';
2222

23-
private Handler $handler;
24-
25-
/** @var Client|MockObject */
26-
private MockObject $httpClient;
23+
private Handler $handler;
24+
private Client|MockObject $httpClient;
2725

2826
public function setUp(): void
2927
{

0 commit comments

Comments
 (0)