| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function testImmutable(): void |
||
| 31 | { |
||
| 32 | $widget = FragmentCache::widget(); |
||
| 33 | $this->assertNotSame($widget, $widget->id('')); |
||
|
|
|||
| 34 | $this->assertNotSame($widget, $widget->ttl(3600)); |
||
| 35 | $this->assertNotSame($widget, $widget->dependency(new TagDependency('test'))); |
||
| 36 | $this->assertNotSame($widget, $widget->dynamicContents(new DynamicContent('test', fn (): string => 'test'))); |
||
| 37 | $this->assertNotSame($widget, $widget->variations('')); |
||
| 38 | } |
||
| 40 |