/** * Check if file/source is cachable * * @param array $item * @return boolen */ public function isCachable($item) { // Don't cache if data-allow-caching is false if (!isset($item->extras) || !isset($item->extras['data-allow-caching']) || $item->extras['data-allow-caching'] === 'false') { return false; } return parent::isCachable($item); }
public function testSearchFileShouldReturnNullForNonExisten() { $this->assertEquals(null, $this->_processor->searchFile('file-which-never-be')); }