Omeka_Test_Bootstrap

class Omeka_Test_Bootstrap

Package: Test

Abstract test case class that bootstraps the entire application.

property _container
setContainer($container)

Set resource container

By default, if a resource callback has a non-null return value, thisvalue will be stored in a container using the resource name as thekey.

Containers must be objects, and must allow setting public properties.

Parameters:
  • $container (unknown) –
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. Ifyou do, it will be stored in the {@link setContainer() container}.You can use this method to determine if a value was stored.

Parameters:
  • $name (unknown) –
Returns:

bool

getResource($name)

Retrieve a resource from the container

During bootstrap resource initialization, you may return a value. Ifyou 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 (unknown) –
Returns:

null|mixed