Skip to content

Commit b0ccd67

Browse files
Revert "update tests to work with phpunit11"
This reverts commit 098dd74.
1 parent 098dd74 commit b0ccd67

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-
protected function setUp(): void
16+
public function __construct($testConfig = null)
1717
{
18-
parent::setUp();
19-
$this->testConfig = new TestConfig();
18+
parent::__construct();
19+
$this->testConfig = $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-
protected function setUp(): void
16+
public function __construct($testConfig = null)
1717
{
18-
parent::setUp();
19-
$this->testConfig = new TestConfig();
18+
parent::__construct();
19+
$this->testConfig = $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-
protected function setUp(): void
31+
public function __construct(TestConfig $testConfig = null)
3232
{
33-
parent::setUp();
34-
$this->testConfig = new TestConfig();
33+
parent::__construct();
34+
$this->testConfig = $testConfig ?? new TestConfig();
3535
}
3636

3737
public function testCreateTemplate_CorrectInputValues_ReturnArray()

0 commit comments

Comments
 (0)