Omeka_Test_Bootstrap
Package: Test
- class Omeka_Test_Bootstrap
Abstract test case class that bootstraps the entire application.
- setContainer($container)
Set resource container
By default, if a resource callback has a non-null return value, this value will be stored in a container using the resource name as the key.
Containers must be objects, and must allow setting public properties.
- Parameters:
$container
- Returns:
Zend_Application_Bootstrap_BootstrapAbstract
- getContainer()
Retrieve resource container
- Returns:
object
- hasResource($name)
Determine if a resource has been stored in the container
During bootstrap resource initialization, you may return a value. If you do, it will be stored in the {@link setContainer() container}. You can use this method to determine if a value was stored.
- Parameters:
$name
- Returns:
bool
- getResource($name)
Retrieve a resource from the container
During bootstrap resource initialization, you may return a value. If you do, it will be stored in the {@link setContainer() container}. You can use this method to retrieve that value.
If no value was returned, this will return a null value.
- Parameters:
$name
- Returns:
null|mixed