Skip to content

Commit e61b571

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 1bf6c02 commit e61b571

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/AutolinkTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class AutolinkTest extends TestCase
1717
{
1818
private $autolink;
1919

20-
public function setUp(): void
20+
protected function setUp(): void
2121
{
2222
$parser = new Parser;
2323
$parser->addElementParser(new UrlParser);
@@ -29,7 +29,7 @@ public function setUp(): void
2929
$this->autolink = new Autolink($parser, $renderer);
3030
}
3131

32-
public function tearDown(): void
32+
protected function tearDown(): void
3333
{
3434
$this->autolink = null;
3535
}

0 commit comments

Comments
 (0)