MakerTestRunner
Table of Contents
Properties
-
$environment
: MakerTestEnvironment
-
$executedMakerProcess
: MakerTestProcess|null
-
$filesystem
: Filesystem
Methods
-
__construct()
: mixed
-
addToAutoloader()
: void
-
configureDatabase()
: void
-
copy()
: void
-
deleteFile()
: void
-
doesClassExist()
: bool
-
getExecutedMakerProcess()
: MakerTestProcess
-
getPath()
: string
-
getSymfonyVersion()
: int
-
manipulateClass()
: void
-
modifyYamlFile()
: void
-
readYaml()
: array<string|int, mixed>
-
removeFromFile()
: void
-
renderTemplateFile()
: void
-
replaceInFile()
: void
-
runConsole()
: void
-
runMaker()
: string
-
runProcess()
: void
-
runTests()
: void
-
updateSchema()
: void
-
writeFile()
: void
$environment
private
MakerTestEnvironment
$environment
$executedMakerProcess
private
MakerTestProcess|null
$executedMakerProcess
= null
$filesystem
private
Filesystem
$filesystem
__construct()
public
__construct(MakerTestEnvironment $environment) : mixed
Parameters
-
$environment
: MakerTestEnvironment
-
addToAutoloader()
public
addToAutoloader(string $namespace, string $path) : void
Parameters
-
$namespace
: string
-
-
$path
: string
-
public
configureDatabase([bool $createSchema = true ]) : void
Parameters
-
$createSchema
: bool
= true
-
copy()
public
copy(string $source, string $destination) : void
Parameters
-
$source
: string
-
-
$destination
: string
-
deleteFile()
public
deleteFile(string $filename) : void
Parameters
-
$filename
: string
-
doesClassExist()
public
doesClassExist(string $class) : bool
Parameters
-
$class
: string
-
getExecutedMakerProcess()
public
getExecutedMakerProcess() : MakerTestProcess
Return values
MakerTestProcess
getPath()
public
getPath(string $filename) : string
Parameters
-
$filename
: string
-
getSymfonyVersion()
public
getSymfonyVersion() : int
manipulateClass()
public
manipulateClass(string $filename, Closure $callback) : void
Parameters
-
$filename
: string
-
-
$callback
: Closure
-
modifyYamlFile()
public
modifyYamlFile(string $filename, Closure $callback) : void
Parameters
-
$filename
: string
-
-
$callback
: Closure
-
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
-
renderTemplateFile()
public
renderTemplateFile(string $source, string $destination, array<string|int, mixed> $variables) : void
Parameters
-
$source
: string
-
-
$destination
: string
-
-
$variables
: array<string|int, mixed>
-
replaceInFile()
public
replaceInFile(string $filename, string $find, string $replace[, bool $allowNotFound = false ]) : void
Parameters
-
$filename
: string
-
-
$find
: string
-
-
$replace
: string
-
-
$allowNotFound
: bool
= false
-
runConsole()
public
runConsole(string $command, array<string|int, mixed> $inputs[, string $arguments = '' ]) : void
Parameters
-
$command
: string
-
-
$inputs
: array<string|int, mixed>
-
-
$arguments
: string
= ''
-
runMaker()
public
runMaker(array<string|int, mixed> $inputs[, string $argumentsString = '' ][, bool $allowedToFail = false ][, array<string|int, mixed> $envVars = [] ]) : string
Parameters
-
$inputs
: array<string|int, mixed>
-
-
$argumentsString
: string
= ''
-
-
$allowedToFail
: bool
= false
-
-
$envVars
: array<string|int, mixed>
= []
-
runProcess()
public
runProcess(string $command) : void
Parameters
-
$command
: string
-
runTests()
public
runTests() : void
updateSchema()
public
updateSchema() : void
writeFile()
public
writeFile(string $filename, string $contents) : void
Parameters
-
$filename
: string
-
-
$contents
: string
-