Skip to content

Commit

Permalink
Add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos authored and Wirone committed Dec 15, 2023
1 parent b5674a9 commit e1a4427
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions tests/Smoke/InstallViaComposerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
final class InstallViaComposerTest extends AbstractSmokeTestCase
{
private Filesystem $fs;
private ?Filesystem $fs;

/** @var array<string, mixed> */
private array $currentCodeAsComposerDependency = [
Expand Down Expand Up @@ -64,13 +64,6 @@ final class InstallViaComposerTest extends AbstractSmokeTestCase
'vendor/bin/php-cs-fixer fix --help',
];

public function __construct()
{
$this->fs = new Filesystem();

parent::__construct();
}

public static function setUpBeforeClass(): void
{
parent::setUpBeforeClass();
Expand Down Expand Up @@ -98,6 +91,16 @@ public static function setUpBeforeClass(): void
}
}

protected function setUp(): void
{
$this->fs = new Filesystem();
}

protected function tearDown(): void
{
$this->fs = null;
}

public function testInstallationViaPathIsPossible(): void
{
$tmpPath = $this->createFakeComposerProject($this->currentCodeAsComposerDependency);
Expand Down

0 comments on commit e1a4427

Please sign in to comment.