Class CrossCuttingLoader
CrossCuttingLoader enables loading of mockable objects for cross cutting concerns, that were not injected to the current object.
Important: RegisteredObjectsOnly flag must be enabled for unit testing.
category |
System |
---|---|
package |
Loaders |
subpackage |
CrossCuttingLoader |
_getObjectFromMainFactory(string $p_classname) : object
string
object
_getObjectFromRegister(string $p_classname) : object
string
object
_strictModeValidateTypeOf( $object)
Throws |
|
---|
clearRegister() : void
getObject(string $p_classname) : object
Throws |
|
---|
string
object
registerObject(string $p_classname, object $object)
Throws |
|
---|
string
object
setRegisteredObjectsOnly(boolean $bool_status)
If RegisteredObjectsOnly is enabled, the loader returns only objects, that were registered by the registerObject method before. RegisteredObjectsOnly should be enabled in all unit tests.
boolean
useRegisteredObjectsOnly() : boolean
boolean
strictModeEnabled : boolean
var | |
---|---|
todo |
Move to CrossCuttingLoaderSettings |
boolean
registeredObjectsOnly : boolean
var |
---|
boolean
registeredObjectArrays : array
var |
---|
array