for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace GacelaTest\Feature\Framework\UsingConfigWithBootstrapSetup;
use Gacela\Framework\Bootstrap\GacelaConfig;
use Gacela\Framework\Gacela;
use PHPUnit\Framework\TestCase;
final class FeatureTest extends TestCase
{
protected function setUp(): void
$configFn = static function (GacelaConfig $config): void {
$config->resetInMemoryCache();
$config->addAppConfig('custom-config.php', 'custom-config_local.php');
};
Gacela::bootstrap(__DIR__, $configFn);
}
public function test_load_default_config(): void
$facade = new LocalConfig\Facade();
self::assertSame(
[
'config' => 1,
'config_local' => 2,
'override' => 5,
],
$facade->doSomething(),
);