public function testDefaults() { $options = new Options(array('magento-root-dir' => '/')); $this->assertTrue($options->appendToGitIgnore()); $this->assertSame("", $options->getMagentoRootDir()); $this->assertSame(array(".git"), $options->getDeployExcludes()); $this->assertInternalType('array', $options->getIgnoreDirectories()); }
/** * @param Options $options */ public function getInstaller(Options $options) { $exclude = new Exclude($options->getDeployExcludes()); $gitIgnore = new GitIgnore(sprintf("%s/.gitignore", $options->getMagentoRootDir()), $options->getIgnoreDirectories(), $options->appendToGitIgnore()); $installer = new CoreInstaller($exclude, $gitIgnore, $this->filesystem); return $installer; }