diff --git a/tests/Event/GetAssetsEventTest.php b/tests/Event/GetAssetsEventTest.php index ab92da7..2ed9dac 100644 --- a/tests/Event/GetAssetsEventTest.php +++ b/tests/Event/GetAssetsEventTest.php @@ -26,9 +26,7 @@ final class GetAssetsEventTest extends SolveEvent { private array $assets = ['@composer-asset/foo--bar' => 'file:./vendor/foxy/composer-asset/foo/bar']; - /** - * @return GetAssetsEvent - */ + public function getEvent(): GetAssetsEvent { return new GetAssetsEvent($this->assetDir, $this->packages, $this->assets); diff --git a/tests/Fallback/AssetFallbackTest.php b/tests/Fallback/AssetFallbackTest.php index a221885..b2a8fe5 100644 --- a/tests/Fallback/AssetFallbackTest.php +++ b/tests/Fallback/AssetFallbackTest.php @@ -28,6 +28,7 @@ */ final class AssetFallbackTest extends \PHPUnit\Framework\TestCase { + protected AssetFallback|null $assetFallback = null; private Config|null $config = null; private IOInterface|MockObject|null $io = null; private Filesystem|MockObject|null $fs = null; @@ -35,11 +36,6 @@ final class AssetFallbackTest extends \PHPUnit\Framework\TestCase private string|null $oldCwd = ''; private string|null $cwd = ''; - /** - * @var AssetFallback - */ - protected $assetFallback; - protected function setUp(): void { parent::setUp(); diff --git a/tests/Json/JsonFileTest.php b/tests/Json/JsonFileTest.php index 7211c01..cf7b859 100644 --- a/tests/Json/JsonFileTest.php +++ b/tests/Json/JsonFileTest.php @@ -160,6 +160,6 @@ public function testWriteWithExistingFile(): void $this->assertFileExists($filename); $content = file_get_contents($filename); - $this->assertSame($expected, $content); + Assert::equalsWithoutLE($expected, $content); } } diff --git a/tests/Util/AssetUtilTest.php b/tests/Util/AssetUtilTest.php index b45b775..b327eb5 100644 --- a/tests/Util/AssetUtilTest.php +++ b/tests/Util/AssetUtilTest.php @@ -62,7 +62,6 @@ public function testGetName(): void public function testGetPathWithoutRequiredFoxy(): void { - $installationManager = $this->createMock(InstallationManager::class); $installationManager->expects($this->never())->method('getInstallPath');