diff --git a/.github/workflows/tests-multiples-versions.yml b/.github/workflows/tests-multiples-versions.yml index 043797f..ac85585 100644 --- a/.github/workflows/tests-multiples-versions.yml +++ b/.github/workflows/tests-multiples-versions.yml @@ -36,4 +36,6 @@ jobs: run: composer validate - name: Run test suite - run: composer test + run: + echo $(pwd) + | composer test diff --git a/tests/Units/DependencyInjection/ContainerBuilderTest.php b/tests/Units/DependencyInjection/ContainerBuilderTest.php index 4665bb1..bb61db7 100644 --- a/tests/Units/DependencyInjection/ContainerBuilderTest.php +++ b/tests/Units/DependencyInjection/ContainerBuilderTest.php @@ -19,21 +19,22 @@ final class ContainerBuilderTest extends TestCase { private ContainerBuilder $containerBuilder; - private string $rootPath = '/code'; private string $rootNamespace = 'Tests\\Shared\\Infrastructure\\'; - private string $containerCachePath = '/code/tmp/cache/container'; private string $containerCacheFileName = 'CompiledContainer.php'; + private string $containerCachePath; private string $containerCacheFilePath; public function setUp(): void { + $rootPath = dirname(__DIR__, 2); + $this->containerCachePath = "$rootPath/tmp/cache/container"; $this->containerCacheFilePath = "$this->containerCachePath/$this->containerCacheFileName"; $this->removeContainerCache(); $this->containerBuilder = ContainerBuilder::create() ->addRootNamespace($this->rootNamespace) - ->addRootPath($this->rootPath); + ->addRootPath($rootPath); } public function tearDown(): void