App\Lib\Codeception::__construct PHP Method

__construct() public method

Initialization of the Codeception class.
public __construct ( array $config = [], $site = NULL )
$config array The codeception.php configuration file.
    public function __construct($config = array(), $site = NULL)
    {
        // Set the basic config, just incase.
        $this->config = $config;
        // If the array wasn't loaded, we can't go any further.
        if (sizeof($config) == 0) {
            return;
        }
        // Setup the sites available to Webception
        $this->site = $site;
        // If the site class isn't ready, we can't load codeception.
        if (!$site->ready()) {
            return;
        }
        // If the Configuration was loaded successfully, merge the configs!
        if ($this->yaml = $this->loadConfig($site->getConfigPath(), $site->getConfigFile())) {
            $this->config = array_merge($config, $this->yaml);
            $this->loadTests();
        }
    }