Skip to content

Commit

Permalink
Add 'setUp(): void' declaration for PhpUnit 9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimjustus committed Oct 19, 2020
1 parent 89a21ac commit 4893496
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Test/Integration/Model/Config/ConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ConverterTest extends \PHPUnit\Framework\TestCase
*/
protected $model;

protected function setUp()
protected function setUp(): void
{
$this->model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
->create(Converter::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FetchMediaFilesChainTest extends \PHPUnit\Framework\TestCase
*/
private $parser2;

protected function setUp()
protected function setUp(): void
{
$this->parser1 = self::getMockBuilder(MediaFilesParserInterface::class)
->disableOriginalConstructor()
Expand Down
2 changes: 1 addition & 1 deletion Test/Integration/Model/PageInstaller/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestCase extends \PHPUnit\Framework\TestCase
protected $getFisrtPageByPageEntry;


protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 4893496

Please sign in to comment.