Esempio n. 1
0
 public function testConstruct()
 {
     $app = $this->getApp();
     $autoload = $app['resources']->getPath('extensionspath/vendor/autoload.php');
     @unlink($autoload);
     $action = new DumpAutoload($app);
     $action->execute();
     $this->assertTrue(is_readable($app['resources']->getPath('extensionspath/vendor/autoload.php')));
 }
Esempio n. 2
0
 /**
  * Dump fresh autoloader.
  */
 public function dumpautoload()
 {
     if (!$this->dumpautoload) {
         $this->dumpautoload = new DumpAutoload($this->app);
     }
     $this->dumpautoload->execute();
 }