| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function testCacheFragmentThrowExceptionIfNotSetId(): void |
||
| 31 | { |
||
| 32 | $this->expectException(RuntimeException::class); |
||
| 33 | $this->expectExceptionMessage('You must assign the "id" using the "id()" setter.'); |
||
| 34 | |||
| 35 | FragmentCache::widget()->begin(); |
||
| 36 | echo 'cached fragment'; |
||
| 37 | FragmentCache::end(); |
||
| 38 | } |
||
| 40 |