GroupManager
in package
Loads information for groups from external sources (config, filesystem)
Table of Contents
Properties
- $configuredGroups : mixed
- $rootDir : mixed
- $testsInGroups : mixed
Methods
- __construct() : mixed
- groupsForTest() : mixed
- loadConfiguredGroupSettings() : mixed
- loadGroupsByPattern() : mixed
- proceeds group names with asterisk:
- checkIfFileExists() : mixed
- normalizeFilePath() : false|string
Properties
$configuredGroups
protected
mixed
$configuredGroups
$rootDir
protected
mixed
$rootDir
$testsInGroups
protected
mixed
$testsInGroups
= []
Methods
__construct()
public
__construct(array<string|int, mixed> $groups) : mixed
Parameters
- $groups : array<string|int, mixed>
groupsForTest()
public
groupsForTest(Test $test) : mixed
Parameters
- $test : Test
loadConfiguredGroupSettings()
protected
loadConfiguredGroupSettings() : mixed
loadGroupsByPattern()
proceeds group names with asterisk:
protected
loadGroupsByPattern() : mixed
"tests/_log/g_*" => [
"tests/_log/group_1",
"tests/_log/group_2",
"tests/_log/group_3",
]
checkIfFileExists()
private
checkIfFileExists(string $path, string $group) : mixed
Parameters
- $path : string
- $group : string
Tags
normalizeFilePath()
private
normalizeFilePath(string $file, string $group) : false|string
Parameters
- $file : string
- $group : string