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'))); }
/** * Dump fresh autoloader. */ public function dumpautoload() { if (!$this->dumpautoload) { $this->dumpautoload = new DumpAutoload($this->app); } $this->dumpautoload->execute(); }