Esempio n. 1
0
 public function testSanitizePath()
 {
     $location = __DIR__ . '/temp';
     //note we pass it without the final /
     $this->c->setCachePath($location);
     $this->assertEquals($this->location, $this->c->getCachePath());
     //and here the final / exists
 }
Esempio n. 2
0
File: Tg.php Progetto: twhiston/tg
 /**
  * @param CommandLoader $commandLoader
  */
 protected function loadLocalVendors(CommandLoader $commandLoader)
 {
     //Load the dynamic paths
     if (file_exists($this->dir . '/vendor')) {
         $locations = [$this->dir . '/vendor'];
         $path = $this->classCache->getCachePath();
         $this->classCache->setCachePath($this->dir . '/.tg/');
         $this->addCommands($commandLoader, $locations, $this->libDevMode);
         $this->classCache->setCachePath($path);
     }
 }