diff --git a/tests/Issues/StraussIssue109Test.php b/tests/Issues/StraussIssue109Test.php new file mode 100644 index 00000000..4961bc2c --- /dev/null +++ b/tests/Issues/StraussIssue109Test.php @@ -0,0 +1,52 @@ +testsWorkingDir); + + file_put_contents($this->testsWorkingDir . '/composer.json', $composerJsonString); + + exec('composer install'); + + $_SERVER['argv'] = [$this->projectDir . '/bin/strauss']; + + $version = '0.19.1'; + $app = new \BrianHenryIE\Strauss\Console\Application($version); + $app->setAutoExit(false); + $result = $app->run(); + + $this->assertEquals(0, $result); + + $this->assertFileDoesNotExist($this->testsWorkingDir . 'vendor/psr/log/composer.json'); + } +}