Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 9, 2023
1 parent f5ec267 commit fa631da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/Configuration/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
Expand Down
13 changes: 1 addition & 12 deletions tests/Console/Command/CompileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
),
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -2826,7 +2815,7 @@ public function test_it_displays_recommendations_and_warnings(): void
💡 <recommendation>1 recommendation found:</recommendation>
- The "check-requirements" setting can be omitted since is set to its default value
⚠️ <warning>2 warnings found:</warning>
⚠️ <warning>1 warning found:</warning>
- The requirement checker could not be used because the composer.json and composer.lock file could not be found.
// PHAR: 1 file (100B)
Expand Down

0 comments on commit fa631da

Please sign in to comment.