blob: 014b0a0756b4c7baee0a105a285568875929cbf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
/**
* PHPPgAdmin6
*/
namespace Helper;
\defined('IN_TEST') || \define('IN_TEST', true);
$bootstrapfile = \dirname(__DIR__, 3) . '/vendor/autoload.php';
require_once $bootstrapfile;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Unit extends \Codeception\Module
{
/**
* @var \PHPPgAdmin\ContainerUtils
*/
private static $_container;
private static $_conf;
public static function getContainer()
{
//$conf = self::getConf();
if (!static::$_container) {
self::$_container = containerInstance();
}
//dump(PHP_SAPI);
//\Codeception\Util\Debug::debug('BASE_PATH is ' . \BASE_PATH);
return self::$_container;
}
}
|