Skip to content

Commit a111d77

Browse files
committed
feat(ci): test
1 parent ad030c1 commit a111d77

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/tests-multiples-versions.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ jobs:
3636
run: composer validate
3737

3838
- name: Run test suite
39-
run: composer test
39+
run:
40+
echo $(pwd)
41+
| composer test

tests/Units/DependencyInjection/ContainerBuilderTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,22 @@
1919
final class ContainerBuilderTest extends TestCase
2020
{
2121
private ContainerBuilder $containerBuilder;
22-
private string $rootPath = '/code';
2322
private string $rootNamespace = 'Tests\\Shared\\Infrastructure\\';
24-
private string $containerCachePath = '/code/tmp/cache/container';
2523
private string $containerCacheFileName = 'CompiledContainer.php';
24+
private string $containerCachePath;
2625
private string $containerCacheFilePath;
2726

2827
public function setUp(): void
2928
{
29+
$rootPath = dirname(__DIR__, 2);
30+
$this->containerCachePath = "$rootPath/tmp/cache/container";
3031
$this->containerCacheFilePath = "$this->containerCachePath/$this->containerCacheFileName";
3132

3233
$this->removeContainerCache();
3334

3435
$this->containerBuilder = ContainerBuilder::create()
3536
->addRootNamespace($this->rootNamespace)
36-
->addRootPath($this->rootPath);
37+
->addRootPath($rootPath);
3738
}
3839

3940
public function tearDown(): void

0 commit comments

Comments
 (0)