| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function testExceptionWhileConstruction(): void |
||
| 31 | { |
||
| 32 | // setup and test body |
||
| 33 | ob_start(); |
||
| 34 | new ExceptionTestingService(new TestingTransport(new MockProvider())); |
||
| 35 | $content = ob_get_contents(); |
||
| 36 | ob_end_clean(); |
||
| 37 | |||
| 38 | // assertions |
||
| 39 | $this->assertStringContainsString("message", $content); |
||
| 40 | $this->assertStringContainsString("code", $content); |
||
| 41 | $this->assertTrue(is_array(json_decode($content, true))); |
||
| 42 | } |
||
| 44 |