toBe(['KEY' => ['value' => $value, 'comment' => null]]); })->with([ 'plain' => ['plain-value'], 'empty' => [''], 'double quoted' => ['"abc"'], 'single quoted' => ["'\$FOO'"], 'leading double quote only' => ['"abc'], 'quotes inside' => ['He said "hi" and \'bye\''], 'hash after whitespace' => ['value #not-a-comment'], 'hash without whitespace' => ['value#hash'], 'double quoted with suffix' => ['"Company :: App" '], ]); it('returns null for values that the env format cannot hold', function (string $value) { expect(formatEnvValueForDevView($value))->toBeNull(); })->with([ 'both quote types and a leading quote' => ['\'"Company :: App" \''], 'line break' => ["first\nsecond"], ]);