Exemplo n.º 1
0
 protected function setUp()
 {
     parent::setUp();
     $this->componentDir = realpath(sys_get_temp_dir()) . DIRECTORY_SEPARATOR . 'composer-test-component';
     $this->ensureDirectoryExistsAndClear($this->componentDir);
     $this->config->merge(array('config' => array('component-dir' => $this->componentDir)));
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     // Run through the Library Installer Test set up.
     parent::setUp();
     // Also be sure to set up the Component directory.
     $this->componentDir = realpath(sys_get_temp_dir()) . DIRECTORY_SEPARATOR . 'composer-test-component';
     $this->ensureDirectoryExistsAndClear($this->componentDir);
     // Merge the component-dir setting in so that it applies correctly.
     $this->config->merge(array('config' => array('component-dir' => $this->componentDir)));
 }