PluginCommandTest
extends TestCase
in package
Generate/Plugin command test.
Tags
Table of Contents
- testError() : void
- Test exception handling.
- testSuccessWithFactoryParameter() : void
- Test the factory parameter.
- testSuccessWithMinimalParameters() : void
- Test the simplest possible success case.
- testWithoutParameters() : void
- Test that missing parameters yield an error message.
- getMockContainer() : ContainerInterface
- Get a mock container object
- getMockGeneratorTools() : GeneratorTools
- Get a mock generator tools object
Methods
testError()
Test exception handling.
public
testError() : void
Return values
void —testSuccessWithFactoryParameter()
Test the factory parameter.
public
testSuccessWithFactoryParameter() : void
Return values
void —testSuccessWithMinimalParameters()
Test the simplest possible success case.
public
testSuccessWithMinimalParameters() : void
Return values
void —testWithoutParameters()
Test that missing parameters yield an error message.
public
testWithoutParameters() : void
Return values
void —getMockContainer()
Get a mock container object
protected
getMockContainer([array<string|int, mixed> $methods = [] ]) : ContainerInterface
Parameters
- $methods : array<string|int, mixed> = []
-
Methods to mock
Return values
ContainerInterface —getMockGeneratorTools()
Get a mock generator tools object
protected
getMockGeneratorTools([array<string|int, mixed> $methods = [] ]) : GeneratorTools
Parameters
- $methods : array<string|int, mixed> = []
-
Methods to mock