File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
tests/Units/DependencyInjection Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 36
36
run : composer validate
37
37
38
38
- name : Run test suite
39
- run : composer test
39
+ run :
40
+ echo $(pwd)
41
+ | composer test
Original file line number Diff line number Diff line change 19
19
final class ContainerBuilderTest extends TestCase
20
20
{
21
21
private ContainerBuilder $ containerBuilder ;
22
- private string $ rootPath = '/code ' ;
23
22
private string $ rootNamespace = 'Tests \\Shared \\Infrastructure \\' ;
24
- private string $ containerCachePath = '/code/tmp/cache/container ' ;
25
23
private string $ containerCacheFileName = 'CompiledContainer.php ' ;
24
+ private string $ containerCachePath ;
26
25
private string $ containerCacheFilePath ;
27
26
28
27
public function setUp (): void
29
28
{
29
+ $ rootPath = dirname (__DIR__ , 2 );
30
+ $ this ->containerCachePath = "$ rootPath/tmp/cache/container " ;
30
31
$ this ->containerCacheFilePath = "$ this ->containerCachePath / $ this ->containerCacheFileName " ;
31
32
32
33
$ this ->removeContainerCache ();
33
34
34
35
$ this ->containerBuilder = ContainerBuilder::create ()
35
36
->addRootNamespace ($ this ->rootNamespace )
36
- ->addRootPath ($ this -> rootPath );
37
+ ->addRootPath ($ rootPath );
37
38
}
38
39
39
40
public function tearDown (): void
You can’t perform that action at this time.
0 commit comments