blob: dc44bc26dcf3380a6f2103fe8a3c38a6ec9a3350 (
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
39
40
41
42
43
44
45
46
47
|
<?php
/**
* PHPPgAdmin 6.0.0
*/
namespace Helper;
\defined('IN_TEST') || \define('IN_TEST', true);
use PHPPgAdmin\ContainerUtils;
$bootstrapfile= dirname(__DIR__,3) . '/src/lib.inc.php';
if (!\is_readable($bootstrapfile)) {
die('lib.inc.php is not readable');
}
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
*/
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;
}
}
|