diff --git a/tests/Issues/MozartIssue109Test.php b/tests/Issues/MozartIssue109Test.php new file mode 100644 index 00000000..18cd2eb5 --- /dev/null +++ b/tests/Issues/MozartIssue109Test.php @@ -0,0 +1,72 @@ +testsWorkingDir . '/composer.json', $composerJsonString); + + chdir($this->testsWorkingDir); + + exec('composer install'); + + $inputInterfaceMock = $this->createMock(InputInterface::class); + $outputInterfaceMock = $this->createMock(OutputInterface::class); + + $mozartCompose = new Compose(); + + $result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock); + + $phpString = file_get_contents($this->testsWorkingDir .'strauss/nesbot/carbon/src/Carbon/Carbon.php'); + + $this->assertStringNotContainsString('*Mozart\\ This file is part of the Carbon package.Mozart\\', $phpString); + } +}