Skip to content

Commit

Permalink
Improve string output
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 30, 2024
1 parent 65a3aef commit 15a084c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/testing/src/FluentTestingHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ protected function assertAllSame(...$vars): void
protected function dd($var): void
{
if (is_string($var)) {
echo $var;
echo "```\n";
echo $var.($var[-1] === "\n" ? '' : "\n");
echo "```\n";
} elseif(is_array($var)) {
var_export($var);
} else {
Expand Down

0 comments on commit 15a084c

Please sign in to comment.