| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | protected function tearDown(): void |
||
| 36 | { |
||
| 37 | $this->cleanUpFilesystem(); |
||
| 38 | |||
| 39 | if (method_exists(\Illuminate\View\Component::class, 'flushCache')) { |
||
| 40 | /** Until https://github.com/laravel/framework/pull/44648 makes its way into Laravel Zero, we need to clear the cache ourselves */ |
||
| 41 | Component::flushCache(); |
||
| 42 | Component::forgetComponentsResolver(); |
||
| 43 | Component::forgetFactory(); |
||
| 44 | } |
||
| 45 | |||
| 46 | Features::clearMockedInstances(); |
||
| 47 | |||
| 48 | parent::tearDown(); |
||
| 49 | } |
||
| 60 |