We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecce542 commit e98f990Copy full SHA for e98f990
tests/unit/Event/Events/Test/Issue/ErrorTriggeredTest.php
@@ -44,4 +44,19 @@ public function testConstructorSetsValues(): void
44
$this->assertSame($suppressed, $event->wasSuppressed());
45
$this->assertSame('Test Triggered Error (FooTest::testBar)' . PHP_EOL . 'message', $event->asString());
46
}
47
+
48
+ public function testCanBeSuppressed(): void
49
+ {
50
+ $event = new ErrorTriggered(
51
+ $this->telemetryInfo(),
52
+ $this->testValueObject(),
53
+ 'message',
54
+ 'file',
55
+ 1,
56
+ true,
57
+ );
58
59
+ $this->assertTrue($event->wasSuppressed());
60
+ $this->assertSame('Test Triggered Suppressed Error (FooTest::testBar)' . PHP_EOL . 'message', $event->asString());
61
+ }
62
0 commit comments