Omeka_Test_Resource_Mail

Package: Test\Resource

class Omeka_Test_Resource_Mail

extends Zend_Application_Resource_ResourceAbstract

Testing resource for saving mail to the filesystem.

Omeka_Test_Resource_Mail::init()
Returns:

Zend_Mail

Omeka_Test_Resource_Mail::mailCallback($transport)

Makes mail output names contain both the timestamp and an incrementing counter. The timestamp ensures mails between test runs don’t collide, the counter differentiates between messages sent during the same timestamp unit (common).

Parameters:
  • $transport