MakeUnitTest
extends AbstractMaker
in package
FinalYes
Convenient abstract class for makers.
Tags
Table of Contents
Methods
- configureCommand() : void
- configureDependencies() : void
- generate() : void
- getCommandDescription() : string
- getCommandName() : string
- interact() : void
- If necessary, you can use this method to interactively ask the user for input.
- addDependencies() : string
- writeSuccessMessage() : void
Methods
configureCommand()
public
configureCommand(Command $command, InputConfiguration $inputConfig) : void
Parameters
- $command : Command
- $inputConfig : InputConfiguration
configureDependencies()
public
configureDependencies(DependencyBuilder $dependencies) : void
Parameters
- $dependencies : DependencyBuilder
generate()
public
generate(InputInterface $input, ConsoleStyle $io, Generator $generator) : void
Parameters
- $input : InputInterface
- $io : ConsoleStyle
- $generator : Generator
getCommandDescription()
public
static getCommandDescription() : string
Return values
stringgetCommandName()
public
static getCommandName() : string
Return values
stringinteract()
If necessary, you can use this method to interactively ask the user for input.
public
interact(InputInterface $input, ConsoleStyle $io, Command $command) : void
Parameters
- $input : InputInterface
- $io : ConsoleStyle
- $command : Command
addDependencies()
protected
addDependencies(array<string|int, mixed> $dependencies[, string $message = null ]) : string
Parameters
- $dependencies : array<string|int, mixed>
- $message : string = null
Return values
stringwriteSuccessMessage()
protected
writeSuccessMessage(ConsoleStyle $io) : void
Parameters
- $io : ConsoleStyle