Example #1
0
 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];
 }
Example #2
0
 /**
  * @test
  */
 public function hasCache_fail()
 {
     $this->assertFalse($this->target->hasCache());
 }
Example #3
0
 private function getBinder()
 {
     $class = $this->context->hasCache() ? CachedBinder::class : Binder::class;
     return $this->container->getInstance($class);
 }