From fba2cef59f3fa2f12f4d3c25dfc65bfb125f9820 Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Sat, 1 May 2021 02:03:34 -0700 Subject: [PATCH] nesbot/carbon empty searchNamespace https://github.com/coenjacobs/mozart/issues/109 @BrianHenryIE --- tests/Issues/MozartIssue109Test.php | 72 +++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 tests/Issues/MozartIssue109Test.php 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); + } +}