Skip to content

[Filesystem] FilesystemTestCase is not compatible with PHPUnit 8 #30695

@GaryPEGEOT

Description

@GaryPEGEOT

Symfony version(s) affected: >= 3.4

Description
the FilesystemTestCase has the same issue that #30071

How to reproduce
Run a test extending FilesystemTestCase with PHPUnit 8 will produce:
PHP Fatal error: Declaration of Symfony\Component\Filesystem\Tests\FilesystemTestCase::setUpBeforeClass() must be compatible with PHPUnit\Framework\TestCase::setUpBeforeClass(): void

Possible Solution
Use the same solution that #30474

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions