Skip to content

Commit

Permalink
make it independent of PHP platform used
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Aug 25, 2024
1 parent ee35f48 commit 7fff8f4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/unit/ManifestFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
use PharException;
use stdClass;
use function explode;
use function file_get_contents;
use function str_replace;
use const PHP_EOL;

/**
Expand Down Expand Up @@ -180,9 +182,9 @@ public function testBuildResource(string $outputFormat, ?string $resource, bool

$manifestContents = $factory->build($options);

$this->assertStringEqualsFile(
__DIR__ . '/../fixtures/phario-manifest-2.0.x-dev/' . $resource,
$manifestContents
);
$expectedContents = file_get_contents(__DIR__ . '/../fixtures/phario-manifest-2.0.x-dev/' . $resource);
$expectedContents = str_replace('8.2.21', phpversion(), $expectedContents);

$this->assertStringEqualsStringIgnoringLineEndings($expectedContents, $manifestContents);
}
}

0 comments on commit 7fff8f4

Please sign in to comment.