| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function testBeginEnd(): void |
||
| 32 | { |
||
| 33 | ob_start(); |
||
| 34 | ob_implicit_flush(0); |
||
| 35 | |||
| 36 | $widget = TestWidgetA::begin()->id('test'); |
||
| 37 | |||
| 38 | $this->assertTrue($widget instanceof Widget); |
||
| 39 | |||
| 40 | TestWidgetA::end(); |
||
| 41 | $output = ob_get_clean(); |
||
| 42 | |||
| 43 | $this->assertSame('<run-test>', $output); |
||
| 44 | } |
||
| 65 |