From fa631daa7767a6442cbef4aa3f0a2a5db075392a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Thu, 9 Nov 2023 23:14:34 +0100 Subject: [PATCH] fix --- tests/Configuration/ConfigurationTest.php | 2 +- tests/Console/Command/CompileTest.php | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/tests/Configuration/ConfigurationTest.php b/tests/Configuration/ConfigurationTest.php index 133439305..811486203 100644 --- a/tests/Configuration/ConfigurationTest.php +++ b/tests/Configuration/ConfigurationTest.php @@ -1138,7 +1138,7 @@ public function test_can_configure_metadata(): void self::assertSame([], $this->config->getRecommendations()); self::assertSame( [ - 'Using the "metadata" setting is deprecated and will be removed in 5.0.0.' + 'Using the "metadata" setting is deprecated and will be removed in 5.0.0.', ], $this->config->getWarnings(), ); diff --git a/tests/Console/Command/CompileTest.php b/tests/Console/Command/CompileTest.php index 626f1c32b..ef4fa1d21 100644 --- a/tests/Console/Command/CompileTest.php +++ b/tests/Console/Command/CompileTest.php @@ -575,7 +575,6 @@ public function test_it_can_build_a_phar_with_complete_mapping(): void 'map' => [ ['a/deep/test/directory' => 'sub'], ], - 'metadata' => ['rand' => $rand = random_int(0, mt_getrandmax())], 'output' => 'test.phar', ], ), @@ -627,10 +626,6 @@ public function test_it_can_build_a_phar_with_complete_mapping(): void > Generated by Humbug Box {$version}. > > @link https://github.com/humbug/box - ? Setting metadata - - array ( - 'rand' => {$rand}, - ) ? Dumping the Composer autoloader ? Removing the Composer dump artefacts ? No compression @@ -686,12 +681,6 @@ public function test_it_can_build_a_phar_with_complete_mapping(): void self::assertSame($expectedStub, $actualStub); - self::assertSame( - ['rand' => $rand], - $phar->getMetadata(), - 'Expected PHAR metadata to be set', - ); - $expectedFiles = [ '/one/', '/one/test.php', @@ -2826,7 +2815,7 @@ public function test_it_displays_recommendations_and_warnings(): void 💡 1 recommendation found: - The "check-requirements" setting can be omitted since is set to its default value - ⚠️ 2 warnings found: + ⚠️ 1 warning found: - The requirement checker could not be used because the composer.json and composer.lock file could not be found. // PHAR: 1 file (100B)