| Conditions | 4 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | 7 | public function getCacheDir() |
|
| 28 | { |
||
| 29 | 7 | $path = defined('SYMFONY_CACHE_DIR') ? SYMFONY_CACHE_DIR : sys_get_temp_dir().'/foshttpcache-symfony'; |
|
| 30 | 7 | if (!$path || '/' === $path) { |
|
| 31 | 1 | throw new \RuntimeException('Invalid test setup, the cache dir is '.$path); |
|
| 32 | } |
||
| 33 | |||
| 34 | 6 | return $path; |
|
| 35 | } |
||
| 75 |