From abe7dbd51fd0481f83ca96e1d7c6d21722ef8f95 Mon Sep 17 00:00:00 2001 From: gwleuverink Date: Wed, 22 Jan 2025 23:12:03 +0100 Subject: [PATCH] wip - add dumps to debug CI errors --- tests/Unit/CleanEnvFileTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Unit/CleanEnvFileTest.php b/tests/Unit/CleanEnvFileTest.php index 03c06736..6348013c 100644 --- a/tests/Unit/CleanEnvFileTest.php +++ b/tests/Unit/CleanEnvFileTest.php @@ -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'); @@ -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'); @@ -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')