private function getEntry($extension) { $entry = $this->list[$extension]; if ($this->context->hasCache() && !$entry instanceof CachedProcessor) { $this->list[$extension] = new CachedProcessor($entry, $this->cache, $this->fileSystem); } return $this->list[$extension]; }
/** * @test */ public function hasCache_fail() { $this->assertFalse($this->target->hasCache()); }
private function getBinder() { $class = $this->context->hasCache() ? CachedBinder::class : Binder::class; return $this->container->getInstance($class); }