blob: abb182ccec47d1b0e3bfd0805a97362174e924fa (
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
|
<?php
/**
* PHPPgAdmin 6.0.0
*/
namespace Helper;
\defined('IN_TEST') || \define('IN_TEST', true);
$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;
}
}
|