Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0

Request #12598 Create a 'stub' mail driver
Submitted: 2007-12-03 11:42 UTC
From: doconnor Assigned: chagenbu
Status: Closed Package: Mail (version 1.1.14)
PHP Version: 5.2.5 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2007-12-03 11:42 UTC] doconnor (Daniel O'Connor)
Description: ------------ Create a 'stub' mail driver, for use with unit tests (ie, PHPUnit). It should provide a way to input callbacks so users can add their own mail logging functionality. This would be useful for large projects, where mail configuration / sending code is separated. This is different to the existing null driver (minimally); in that it allows people to retrieve the mail 'sent'. See attached for an example.

Comments

 [2007-12-08 17:58 UTC] chagenbu (Chuck Hagenbuch)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. http://cvs.php.net/viewvc.cgi/pear/Mail/Mail/mock.php?view=log Let me know if you can think of other good functionality to have in there!