Example #1
0
 /** @test */
 function it_can_be_constructed_on_the_current_directory()
 {
     if (file_exists('docker-compose.yml')) {
         unlink('docker-compose.yml');
     }
     $project = Project::onDirectory(getcwd());
     $project->save();
     $this->assertFileExists('docker-compose.yml');
     unlink('docker-compose.yml');
 }
Example #2
0
 protected function interact(InputInterface $input, OutputInterface $output)
 {
     $this->project = isset($this->project) ? $this->project : Project::onDirectory(getcwd());
 }