class TestStateRegistrars

Properties

protected Filesystem $files

The filesystem instance.

Methods

__construct(string $basePath, string $vendorPath, Filesystem|null $files = null)

Create a test-state registrar discoverer.

forRootInstall()

Create a discoverer for the current Composer root install.

void
register()

Register discovered test-state registrars.

static string
installedRootPath()

Get the Composer root package path.

static string
resolveInstalledRootPath(mixed $installPath)

Resolve and validate the Composer root install path.

array
rootRegistrars()

Get root test-state registrar classes.

array
registrars()

Get registrar classes keyed by their source package.

void
registerClass(string $source, mixed $class)

Register one registrar class.

Details

at line 23
__construct(string $basePath, string $vendorPath, Filesystem|null $files = null)

Create a test-state registrar discoverer.

Parameters

string $basePath
string $vendorPath
Filesystem|null $files

at line 34
static TestStateRegistrars forRootInstall()

Create a discoverer for the current Composer root install.

Return Value

TestStateRegistrars

at line 48
void register()

Register discovered test-state registrars.

Return Value

void

at line 60
static protected string installedRootPath()

Get the Composer root package path.

Return Value

string

at line 70
static protected string resolveInstalledRootPath(mixed $installPath)

Resolve and validate the Composer root install path.

Parameters

mixed $installPath

Return Value

string

at line 86
protected array rootRegistrars()

Get root test-state registrar classes.

Return Value

array

at line 96
protected array registrars()

Get registrar classes keyed by their source package.

Return Value

array

at line 119
protected void registerClass(string $source, mixed $class)

Register one registrar class.

Parameters

string $source
mixed $class

Return Value

void