mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00:00
18 lines
418 B
PHP
18 lines
418 B
PHP
<?php
|
|
|
|
use Tests\TestCase;
|
|
|
|
uses(TestCase::class);
|
|
|
|
it('parses a Docker Compose file that starts with a UTF-8 byte order mark', function () {
|
|
$compose = "\xEF\xBB\xBFservices:\n web:\n image: nginx:alpine\n";
|
|
|
|
expect(parseDockerComposeYaml($compose))->toBe([
|
|
'services' => [
|
|
'web' => ['image' => 'nginx:alpine'],
|
|
],
|
|
]);
|
|
|
|
validateDockerComposeForInjection($compose);
|
|
});
|