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\BindingInterfacesWithInnerDependencies;
use Gacela\Framework\Bootstrap\GacelaConfig;
use Gacela\Framework\Gacela;
use GacelaTest\Feature\Framework\BindingInterfacesWithInnerDependencies\Module\Domain\Greeter\CorrectCompanyGenerator;
use PHPUnit\Framework\TestCase;
final class FeatureTest extends TestCase
{
protected function setUp(): void
Gacela::bootstrap(__DIR__, static function (GacelaConfig $config): void {
$config->resetInMemoryCache();
$config->addExternalService('greeterGenerator', CorrectCompanyGenerator::class);
});
}
public function test_mapping_interfaces_from_config(): void
self::assertSame(
'Hello Gacela! Name: Chemaclass & Jesus',
(new Module\Facade())->generateCompanyAndName(),
);