Skip to content

Commit a203190

Browse files
committed
Backport "[6.x] Fix windows test" to 5.x
1 parent 10ff373 commit a203190

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/Composer/ComposerTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public function setUp(): void
3636

3737
public function tearDown(): void
3838
{
39+
// If the test was skipped, avoid trying to clean up. The setUp would've never happened.
40+
if (! $this->files) {
41+
parent::tearDown();
42+
43+
return;
44+
}
45+
3946
$this->files->deleteDirectory($this->basePath('tmp'));
4047
$this->files->deleteDirectory($this->basePath('vendor'));
4148
$this->files->delete($this->basePath('composer.json'));

0 commit comments

Comments
 (0)