ExtendClassCommandTest
extends TestCase
in package
Generate/ExtendClass command test.
Tags
Table of Contents
- testError() : void
- Test exception handling.
- testSuccessWithFactoryOption() : void
- Test the extendfactory option.
- 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 —testSuccessWithFactoryOption()
Test the extendfactory option.
public
testSuccessWithFactoryOption() : 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