Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function testReportSentryNotification() |
||
18 | { |
||
19 | $sentryServiceMock = $this->createMock(SentryServiceInterface::class); |
||
20 | $sentryServiceMock->method('captureException') |
||
21 | ->willReturn('event_id'); |
||
22 | $sentryServiceMock->method('getIssueUrl') |
||
23 | ->with('event_id') |
||
24 | ->willReturn('http://example.com/event'); |
||
25 | |||
26 | $sentryNotifier = new SentryNotifier($sentryServiceMock); |
||
27 | |||
28 | $sentryNotifier->reportSentryNotification(new Exception('Test exception')); |
||
29 | $this->assertTrue(true); |
||
30 | } |
||
32 |