Skip to content

Commit

Permalink
Merge pull request #9 from laravel/tests/reportable-strings
Browse files Browse the repository at this point in the history
[1.x] Adds tests on reported strings
  • Loading branch information
taylorotwell authored Oct 9, 2023
2 parents fd7ed92 + 201e97e commit 1516e6c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Features/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@
);
});

test('reported strings', function () {
expect('report("my reported string")')->toPail(<<<'EOF'
┌ 03:04:05 Exception ──────── app/MyClass.php:12 ┐
│ my reported string │
└─────────────────────────────────────── artisan ┘

EOF,
);
});

test('multiple exceptions and messages', function () {
expect([
'throw new RuntimeException("my runtime exception message")',
Expand Down

0 comments on commit 1516e6c

Please sign in to comment.