Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtARTs36 committed May 26, 2023
1 parent c1e764b commit f3b6f92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/Unit/Domain/Note/ExceptionNoteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ public function testWithSeverity(): void
*/
public function testJsonSerialize(): void
{
$note = new ExceptionNote(new \Exception('exception msg'));
$note = new ExceptionNote($e = new \Exception('exception msg'));

self::assertEquals(
[
'description' => 'exception msg (exception Exception on /Users/avukrainskiy/PhpstormProjects/php-merge-request-linter/tests/Unit/Domain/Note/ExceptionNoteTest.php#56)',
'description' => sprintf(
'exception msg (exception Exception on %s#%s)',
$e->getFile(),
$e->getLine(),
),
'severity' => NoteSeverity::Fatal->value,
],
$note->jsonSerialize(),
Expand Down

0 comments on commit f3b6f92

Please sign in to comment.