Skip to content

Commit

Permalink
wip - add dumps to debug CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Jan 22, 2025
1 parent 141bccc commit abe7dbd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Unit/CleanEnvFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ protected function buildPath(string $path = ''): string
'FOO',
]);

dump(file_get_contents("{$buildPath}/.env");

$command->cleanEnvFile();

dump(file_get_contents("{$buildPath}/.env");

expect(file_get_contents("{$buildPath}/.env"))
->not->toContain('FOO')
->toContain('BAZ');
Expand All @@ -69,8 +73,12 @@ protected function buildPath(string $path = ''): string
# REMOVE_ME=hello
TXT);

dump(file_get_contents("{$buildPath}/.env");

$command->cleanEnvFile();

dump(file_get_contents("{$buildPath}/.env");

expect(file_get_contents("{$buildPath}/.env"))
->not->toContain('REMOVE_ME')
->toContain('KEEP_ME');
Expand Down Expand Up @@ -107,8 +115,12 @@ protected function buildPath(string $path = ''): string
NATIVEPHP_APPLE_TEAM_ID=test
TXT);

dump(file_get_contents("{$buildPath}/.env");

$command->cleanEnvFile();

dump(file_get_contents("{$buildPath}/.env");

expect(file_get_contents("{$buildPath}/.env"))
->toContain('SAFE_VARIABLE=test')
->not->toContain('AWS_WILDCARD')
Expand Down

0 comments on commit abe7dbd

Please sign in to comment.