| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class TestableFileCache extends FileCache |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $time_frozen; |
||
| 16 | |||
| 17 | public function __construct($cache_path, $default_ttl, $dir_mode, $file_mode) |
||
| 18 | { |
||
| 19 | parent::__construct($cache_path, $default_ttl, $dir_mode, $file_mode); |
||
| 20 | |||
| 21 | $this->time_frozen = parent::getTime(); |
||
| 22 | } |
||
| 23 | |||
| 24 | protected function getTime() |
||
| 25 | { |
||
| 26 | return $this->time_frozen; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param int $seconds |
||
| 31 | */ |
||
| 32 | public function skipTime($seconds) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $key |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getCachePath($key) |
||
| 47 |