Skip to content

Commit 098dd74

Browse files
update tests to work with phpunit11
1 parent ee5935c commit 098dd74

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tests/Click/CreateClickwrapTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ final class CreateClickwrapTest extends TestCase
1313

1414
protected $testConfig;
1515

16-
public function __construct($testConfig = null)
16+
protected function setUp(): void
1717
{
18-
parent::__construct();
19-
$this->testConfig = $testConfig ?? new TestConfig();
18+
parent::setUp();
19+
$this->testConfig = new TestConfig();
2020
}
2121

2222
public function testCreateClickwrap_CorrectInputValues_ReturnClickwrapVersionSummaryResponse()

tests/eSignature/CreateBrandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ final class CreateBrandTest extends TestCase
1313

1414
protected $testConfig;
1515

16-
public function __construct($testConfig = null)
16+
protected function setUp(): void
1717
{
18-
parent::__construct();
19-
$this->testConfig = $testConfig ?? new TestConfig();
18+
parent::setUp();
19+
$this->testConfig = new TestConfig();
2020
}
2121

2222
public function testCreateBrand_CorrectInputValues_ReturnArray()

tests/eSignature/CreateTemplateTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ final class CreateTemplateTest extends TestCase
2828

2929
protected $testConfig;
3030

31-
public function __construct(TestConfig $testConfig = null)
31+
protected function setUp(): void
3232
{
33-
parent::__construct();
34-
$this->testConfig = $testConfig ?? new TestConfig();
33+
parent::setUp();
34+
$this->testConfig = new TestConfig();
3535
}
3636

3737
public function testCreateTemplate_CorrectInputValues_ReturnArray()

0 commit comments

Comments
 (0)