Skip to content

Commit

Permalink
Rename abstract test class
Browse files Browse the repository at this point in the history
Abstract test case classes with Test suffix are deprecated in PHPUnit
10. We also change the ArchiverTest file name to match the new class
name (ArchiverTestCase).

* sebastianbergmann/phpunit#5132
  • Loading branch information
athos-ribeiro committed Jul 3, 2023
1 parent 2ab3f90 commit dc19558
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -21,7 +21,7 @@
use Composer\Util\Platform;
use Composer\Util\ProcessExecutor;

class ArchiveManagerTest extends ArchiverTest
class ArchiveManagerTest extends ArchiverTestCase
{
/**
* @var ArchiveManager
Expand Down
Expand Up @@ -17,7 +17,7 @@
use Composer\Util\ProcessExecutor;
use Composer\Package\CompletePackage;

abstract class ArchiverTest extends TestCase
abstract class ArchiverTestCase extends TestCase
{
/**
* @var \Composer\Util\Filesystem
Expand Down
2 changes: 1 addition & 1 deletion tests/Composer/Test/Package/Archiver/PharArchiverTest.php
Expand Up @@ -15,7 +15,7 @@
use Composer\Package\Archiver\PharArchiver;
use Composer\Util\Platform;

class PharArchiverTest extends ArchiverTest
class PharArchiverTest extends ArchiverTestCase
{
public function testTarArchive(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Composer/Test/Package/Archiver/ZipArchiverTest.php
Expand Up @@ -16,7 +16,7 @@
use ZipArchive;
use Composer\Package\Archiver\ZipArchiver;

class ZipArchiverTest extends ArchiverTest
class ZipArchiverTest extends ArchiverTestCase
{
/**
* @dataProvider provideGitignoreExcludeNegationTestCases
Expand Down

0 comments on commit dc19558

Please sign in to comment.