コード例 #1
0
ファイル: BuildCommand.php プロジェクト: TiMESPLiNTER/fiddler
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $noDevMode = (bool) $input->getOption('no-dev');
     $optimize = (bool) $input->getOption('optimize-autoloader');
     $build = new Build(new ConsoleIO($input, $output, $this->getHelperSet()));
     $build->build(getcwd(), $optimize, $noDevMode);
 }
コード例 #2
0
ファイル: BuildTest.php プロジェクト: JasLin/fiddler
 public function testBuildWithAdvancedExampleProject()
 {
     $build = new Build();
     $build->build(__DIR__ . '/../_fixtures/example-advanced');
     $barAutoloadReal = file_get_contents(__DIR__ . '/../_fixtures/example-advanced/bar/vendor/composer/autoload_real.php');
     $barIncludeFiles = (include __DIR__ . '/../_fixtures/example-advanced/bar/vendor/composer/autoload_files.php');
     $this->assertEquals(array(realpath(__DIR__ . '/../../') . '/vendor/foo/baz/bin/baz'), $barIncludeFiles);
     $this->assertContains('composerRequireOnce', $barAutoloadReal);
 }