mediatekformation

MakerTestRunner
in package

Table of Contents

$environment  : mixed
$executedMakerProcess  : mixed
$filesystem  : mixed
__construct()  : mixed
addToAutoloader()  : mixed
adjustAuthenticatorForLegacyPassportInterface()  : void
When using an authenticator "fixtures" file, this adjusts it to support Symfony 5.2/5.3.
configureDatabase()  : void
copy()  : mixed
deleteFile()  : void
doesClassExist()  : bool
getExecutedMakerProcess()  : MakerTestProcess
getPath()  : string
getSymfonyVersion()  : int
manipulateClass()  : void
modifyYamlFile()  : mixed
readYaml()  : array<string|int, mixed>
removeFromFile()  : void
renderTemplateFile()  : void
replaceInFile()  : void
runConsole()  : mixed
runMaker()  : string
runProcess()  : void
runTests()  : void
updateSchema()  : void
writeFile()  : void

Properties

Methods

__construct()

public __construct(MakerTestEnvironment $environment) : mixed
Parameters
$environment : MakerTestEnvironment
Return values
mixed

addToAutoloader()

public addToAutoloader(string $namespace, string $path) : mixed
Parameters
$namespace : string
$path : string
Return values
mixed

adjustAuthenticatorForLegacyPassportInterface()

When using an authenticator "fixtures" file, this adjusts it to support Symfony 5.2/5.3.

public adjustAuthenticatorForLegacyPassportInterface(string $filename) : void
Parameters
$filename : string
Return values
void

configureDatabase()

public configureDatabase([bool $createSchema = true ]) : void
Parameters
$createSchema : bool = true
Return values
void

copy()

public copy(string $source, string $destination) : mixed
Parameters
$source : string
$destination : string
Return values
mixed

deleteFile()

public deleteFile(string $filename) : void
Parameters
$filename : string
Return values
void

doesClassExist()

public doesClassExist(string $class) : bool
Parameters
$class : string
Return values
bool

getExecutedMakerProcess()

public getExecutedMakerProcess() : MakerTestProcess
Return values
MakerTestProcess

getPath()

public getPath(string $filename) : string
Parameters
$filename : string
Return values
string

getSymfonyVersion()

public getSymfonyVersion() : int
Return values
int

manipulateClass()

public manipulateClass(string $filename, Closure $callback) : void
Parameters
$filename : string
$callback : Closure
Return values
void

modifyYamlFile()

public modifyYamlFile(string $filename, Closure $callback) : mixed
Parameters
$filename : string
$callback : Closure
Return values
mixed

readYaml()

public readYaml(string $filename) : array<string|int, mixed>
Parameters
$filename : string
Return values
array<string|int, mixed>

removeFromFile()

public removeFromFile(string $filename, string $find[, bool $allowNotFound = false ]) : void
Parameters
$filename : string
$find : string
$allowNotFound : bool = false
Return values
void

renderTemplateFile()

public renderTemplateFile(string $source, string $destination, array<string|int, mixed> $variables) : void
Parameters
$source : string
$destination : string
$variables : array<string|int, mixed>
Return values
void

replaceInFile()

public replaceInFile(string $filename, string $find, string $replace[, bool $allowNotFound = false ]) : void
Parameters
$filename : string
$find : string
$replace : string
$allowNotFound : bool = false
Return values
void

runConsole()

public runConsole(string $command, array<string|int, mixed> $inputs[, string $arguments = '' ]) : mixed
Parameters
$command : string
$inputs : array<string|int, mixed>
$arguments : string = ''
Return values
mixed

runMaker()

public runMaker(array<string|int, mixed> $inputs[, string $argumentsString = '' ][, bool $allowedToFail = false ]) : string
Parameters
$inputs : array<string|int, mixed>
$argumentsString : string = ''
$allowedToFail : bool = false
Return values
string

runProcess()

public runProcess(string $command) : void
Parameters
$command : string
Return values
void

writeFile()

public writeFile(string $filename, string $contents) : void
Parameters
$filename : string
$contents : string
Return values
void

Search results