From 114d847784f814f1592b67d8a6580f702a9a5ce9 Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Sat, 1 May 2021 02:01:08 -0700 Subject: [PATCH] Classmap nested path duplication https://github.com/coenjacobs/mozart/issues/90 @Spreeuw --- tests/Issues/MozartIssue90Test.php | 64 ++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 tests/Issues/MozartIssue90Test.php diff --git a/tests/Issues/MozartIssue90Test.php b/tests/Issues/MozartIssue90Test.php new file mode 100644 index 00000000..6478bba8 --- /dev/null +++ b/tests/Issues/MozartIssue90Test.php @@ -0,0 +1,64 @@ +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); + + $this->assertEquals(0, $result); + + // This test would only fail on Windows? + $this->assertDirectoryDoesNotExist($this->testsWorkingDir .'strauss/iio/libmergepdf/vendor/iio/libmergepdf/tcpdi'); + + $this->assertFileExists($this->testsWorkingDir .'/strauss/iio/libmergepdf/tcpdi/tcpdi.php'); + } +}