CommonPluginManagerTrait
Trait for testing plugin managers for v2-v3 compatibility
To use this trait:
- implement the
getPluginManager()
method to return your plugin manager - implement the
getV2InvalidPluginException()
method to return the classvalidatePlugin()
throws under v2
Table of Contents
- aliasProvider() : mixed
- testInstanceOfMatches() : mixed
- testLoadingInvalidElementRaisesException() : mixed
- testPluginAliasesResolve() : mixed
- testRegisteringInvalidElementRaisesException() : mixed
- testShareByDefaultAndSharedByDefault() : mixed
- getInstanceOf() : string
- Returns the value the instanceOf property has been set to
- getPluginManager() : AbstractPluginManager
- Returns the plugin manager to test
- getServiceNotFoundException() : mixed
- getV2InvalidPluginException() : mixed
- Returns the FQCN of the exception thrown under v2 by `validatePlugin()`
Methods
aliasProvider()
public
aliasProvider() : mixed
Return values
mixed —testInstanceOfMatches()
public
testInstanceOfMatches() : mixed
Return values
mixed —testLoadingInvalidElementRaisesException()
public
testLoadingInvalidElementRaisesException() : mixed
Return values
mixed —testPluginAliasesResolve()
public
testPluginAliasesResolve(mixed $alias, mixed $expected) : mixed
Parameters
- $alias : mixed
- $expected : mixed
Tags
Return values
mixed —testRegisteringInvalidElementRaisesException()
public
testRegisteringInvalidElementRaisesException() : mixed
Return values
mixed —testShareByDefaultAndSharedByDefault()
public
testShareByDefaultAndSharedByDefault() : mixed
Return values
mixed —getInstanceOf()
Returns the value the instanceOf property has been set to
protected
abstract getInstanceOf() : string
Return values
string —getPluginManager()
Returns the plugin manager to test
protected
abstract getPluginManager() : AbstractPluginManager
Return values
AbstractPluginManager —getServiceNotFoundException()
protected
getServiceNotFoundException() : mixed
Return values
mixed —getV2InvalidPluginException()
Returns the FQCN of the exception thrown under v2 by `validatePlugin()`
protected
abstract getV2InvalidPluginException() : mixed