| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class DependencyTestCase extends TestCase |
||
| 10 | { |
||
| 11 | private $cache; |
||
| 12 | |||
| 13 | protected function getCache(): CacheInterface |
||
| 14 | { |
||
| 15 | return $this->cache ?? $this->cache = $this->createCache(); |
||
| 16 | } |
||
| 17 | |||
| 18 | protected function createCache(): CacheInterface |
||
| 19 | { |
||
| 20 | return new NullCache(); |
||
| 21 | } |
||
| 22 | |||
| 23 | protected function assertDependencyChanged(Dependency $dependency): void |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function assertDependencyNotChanged(Dependency $dependency): void |
||
| 31 | } |
||
| 32 | } |
||
| 33 |