Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 18, 2024
1 parent ecce542 commit e98f990
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/unit/Event/Events/Test/Issue/ErrorTriggeredTest.php
Expand Up @@ -44,4 +44,19 @@ public function testConstructorSetsValues(): void
$this->assertSame($suppressed, $event->wasSuppressed());
$this->assertSame('Test Triggered Error (FooTest::testBar)' . PHP_EOL . 'message', $event->asString());
}

public function testCanBeSuppressed(): void
{
$event = new ErrorTriggered(
$this->telemetryInfo(),
$this->testValueObject(),
'message',
'file',
1,
true,
);

$this->assertTrue($event->wasSuppressed());
$this->assertSame('Test Triggered Suppressed Error (FooTest::testBar)' . PHP_EOL . 'message', $event->asString());
}
}

0 comments on commit e98f990

Please sign in to comment.