Omeka_Test_Helper_Mail
Package: Test\Helper
- class Omeka_Test_Helper_Mail
Encapsulates testing functionality for email.
- __construct($path)
- Parameters:
$path (
string
) – Real path to the mail storage directory.
- factory()
Configure an instance of the Mail helper using the registered test_config.
- Returns:
Omeka_Test_Helper_Mail
- _getIterator()
Get an iterator over the fakemail directory.
- Returns:
DirectoryIterator
- _isMailFile(SplFileInfo $file)
Check if a directory entry is a mail message file.
- Parameters:
$file (
SplFileInfo
)
- Returns:
bool
- getMailText($index = 0)
Return the text of the n’th email that was sent during the test.
Note that this will not return correct results if reset() was not invoked between test runs.
- Parameters:
$index (
int
)
- Returns:
string
- count()
The number of mails that have been sent.