1
0
mirror of synced 2024-11-23 13:16:02 +03:00
aliexpress-top-client/tests/RetailCrm/Test/TestCase.php

34 lines
794 B
PHP

<?php
namespace RetailCrm\Test;
use Psr\Container\ContainerInterface;
use RetailCrm\Component\Environment;
use RetailCrm\Factory\ContainerFactory;
/**
* Class TestCase
*
* @category TestCase
* @package ${NAMESPACE}
* @author RetailDriver LLC <integration@retailcrm.ru>
* @license MIT
* @link http://retailcrm.ru
* @see https://help.retailcrm.ru
*/
class TestCase extends \PHPUnit\Framework\TestCase
{
private $container;
public function getContainer($recreate = false): ContainerInterface
{
if (null === $this->container || $recreate) {
$this->container = ContainerFactory::withEnv(Environment::TEST)
->withClient(new \GuzzleHttp\Client())
->create();
}
return $this->container;
}
}