| package | GlotPress |
|---|---|
| inherited_from | \GP_UnitTest_Factory_For_Thing |
__construct(object $factory= null, object $thing= null)
| inherited_from | \GP_UnitTest_Factory_For_Thing::__construct() |
|---|
__construct(object $factory, object $thing, array $default_generation_definitions = array())
objectGLobal factory that can be used to create other objects on the system
objectInstance of a GP_Thing subclass. This factory will create objects of this type
arrayDefines what default values should the properties of the object have. The default values can be generators -- an object with next() method. There are some default generators: {@link GP_UnitTest_Generator_Sequence}, {@link GP_UnitTest_Generator_Locale_Name}, {@link GP_UnitTest_Factory_Callback_After_Create}.
apply_callbacks($callbacks, $created)
callback($function)
create($args= array(), $generation_definitions= null)
generate_args($args= array(), $generation_definitions= null, $callbacks= null)
$default_generation_definitions
$factory
$thing