Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
BaseTest.php
1<?php
2
4
8use PHPUnit\Framework\TestCase;
9
10abstract class BaseTest extends TestCase
11{
13 protected static $container;
14
15 public static function loadContainer(): ContainerContract
16 {
17 if (static::$container === null)
18 {
19 static::$container = ContainerBuilder::buildFromConfig(__DIR__ . '/.test.container.php');
20 }
21
22 return static::$container;
23 }
24
25 public static function setUpBeforeClass() : void
26 {
27 Loader::includeModule('catalog');
28 static::loadContainer();
29 }
30}
static buildFromConfig(string $customPath=null)