CodeceptionUtilAutoload

Codeception\Util\Autoload

Autoloader, which is fully compatible with PSR-4, and can be used to autoload your Helper, Page, and Step classes.

__construct()

private __construct()

See source

addNamespace()

public static addNamespace($prefix, $base_dir, $prepend = null)

Adds a base directory for a namespace prefix.

Example:

<?php
// app\Codeception\UserHelper will be loaded from '/path/to/helpers/UserHelper.php'
Autoload::addNamespace('app\Codeception', '/path/to/helpers');

// LoginPage will be loaded from '/path/to/pageobjects/LoginPage.php'
Autoload::add