Skip to content

Commit

Permalink
Use the Symfony\Bridge\PhpUnit\SetUpTearDownTrait trait to avoid conf…
Browse files Browse the repository at this point in the history
…lict around the "void" return type
  • Loading branch information
stevegrunwell committed Oct 29, 2020
1 parent d139bd0 commit d1a4e6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/FixtureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use AssertWell\PHPUnitGlobalState\Exceptions\RedefineException;
use PHPUnit\Framework\SkippedTestError;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

/**
* Tests to ensure that state may be set in PHPUnit fixtures.
Expand All @@ -12,12 +13,14 @@
*/
class FixtureTest extends TestCase
{
use SetUpTearDownTrait;

protected $backupGlobalsBlacklist = [
'FIXTURE_BEFORE_GLOBAL',
'FIXTURE_SETUP_GLOBAL',
];

public function setUp(): void
public function doSetUp()
{
parent::setUp();

Expand Down

0 comments on commit d1a4e6e

Please sign in to comment.