16 lines
362 B
PHP
16 lines
362 B
PHP
<?php
|
|
namespace Tests\Extension;
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
trait ContainerTrait
|
|
{
|
|
protected ContainerInterface $container;
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
require_once implode(DIRECTORY_SEPARATOR, [dirname(__DIR__, 2), 'setup', 'container.php']);
|
|
$this->container = buildContainer();
|
|
}
|
|
}
|