Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Unit.php « Helper « _support « tests - github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 11c94d8b42bf4dbebdb5ef2bd95c067025fcfc44 (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
<?php

/**
 * PHPPgAdmin v6.0.0-RC8
 */

namespace Helper;

// here you can define custom actions
// all public methods declared in helper class will be available in $I

class Unit extends \Codeception\Module
{
    const DIRNAME = __DIR__;

    private static $container;

    public static function getDir()
    {
        return self::DIRNAME;
    }

    public static function getContainer()
    {
        if (!static::$container) {
            require_once self::DIRNAME.'/../../../src/lib.inc.php';
            self::$container = $container;
        }

        \Codeception\Util\Debug::debug('BASE_PATH is '.\BASE_PATH);

        return self::$container;
    }
}