<NME> TestCase.php
<BEF> <?php

namespace Tests;

use App\Bootstrap\BootManager;
use App\Config;
use DI\Container;
use Dotenv\Dotenv;
use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Symfony\Contracts\Cache\CacheInterface;
use Yoast\PHPUnitPolyfills\TestCases\TestCase as BaseTestCase;

class TestCase extends BaseTestCase
{
    /** @var Container The test container */
    protected $container;

    /** @var Config Application configuration */
    protected $config;

    /** @var CacheInterface The test cache */
    protected $cache;

     */
    public function setUp(): void
    {
        $this->container = new Container();
        $this->container->set('base_path', $this->testFilesPath);

        $this->config = new Config([
            'app' => [
                'sort_order' => 'type',
        parent::setUp();

        Dotenv::createUnsafeImmutable(__DIR__)->safeLoad();

        $this->container = BootManager::createContainer(
            dirname(__DIR__) . '/app/config',
            dirname(__DIR__) . '/app/cache'
        );
                'cache' => false
            ],
        ]);
    }

    /**
    protected function filePath(string $filePath): string
    {
        return sprintf('%s/%s', $this->testFilesPath, $filePath);
    }
}

<MSG> Fixed some tests

<DFF> @@ -24,9 +24,6 @@ class TestCase extends PHPUnitTestCase
      */
     public function setUp(): void
     {
-        $this->container = new Container();
-        $this->container->set('base_path', $this->testFilesPath);
-
         $this->config = new Config([
             'app' => [
                 'sort_order' => 'type',
@@ -41,6 +38,10 @@ class TestCase extends PHPUnitTestCase
                 'cache' => false
             ],
         ]);
+
+        $this->container = new Container();
+        $this->container->set('base_path', $this->testFilesPath);
+        $this->container->set(Config::class, $this->config);
     }
 
     /**

{'addition_count': 4, 'commit_subject': 'Fixed some tests', 'deletion_count': 3, 'file_extension': '.php', 'lang': 'php', 'license': 'mit', 'repo_name': 'DirectoryLister/DirectoryLister'}