Skip to content

Commit 282821b

Browse files
committed
Set return type of base TestCase methods
From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type: - `setUpBeforeClass()` - `setUp()` - `assertPreConditions()` - `assertPostConditions()` - `tearDown()` - `tearDownAfterClass()` - `onNotSuccessfulTest()` [1]: https://phpunit.de/announcements/phpunit-8.html
1 parent 1c03b4e commit 282821b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/ToolkitApiTest/ToolkitServiceParameterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class ProgramParameterTest extends TestCase
2525
protected $dim;
2626
protected $by;
2727

28-
public function setUp(): void
28+
protected function setUp(): void
2929
{
3030
$this->size = 20;
3131
$this->type = sprintf('%dB', $this->size);
@@ -168,7 +168,7 @@ final class BinParamTest extends TestCase
168168
*/
169169
protected $programParameter;
170170

171-
public function setUp(): void
171+
protected function setUp(): void
172172
{
173173
$size = 20;
174174
$this->binParam = new BinParam('both', $size, 'UncodeSample', 'p1', 'test');

tests/ToolkitApiTest/ToolkitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class ToolkitTest extends TestCase
3535
*/
3636
protected $toolkit;
3737

38-
public function setUp(): void
38+
protected function setUp(): void
3939
{
4040
$this->toolkit = new Toolkit('*LOCAL', '0', 'testPwd', 'http', false);
4141
}

tests/functional/ToolkitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class ToolkitTest extends TestCase
2121
*/
2222
private $toolkitOptions;
2323

24-
public function setUp(): void
24+
protected function setUp(): void
2525
{
2626
$config = getConfig();
2727

0 commit comments

Comments
 (0)