News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sebastian Göttschkes:
symfony2 Testing email sending
September 13, 2012 @ 08:52:03

Sebastian Göttschkes has a new post showing a method he's come up with to test email sending in a Symfony2 application.

On my endless struggle to achieving 100% code coverage and catching every possible (and impossible) test case (I'm just kiddinh, please don't do this!) I was in need for some way to test the sending of emails. This blog post will show you how to test this within a symfony2 (I'm using symfony 2.1 RC2) application, using the default swiftmailer.

It's not unit testing, it's functional testing, and he provides a bit of background on the process first then sets up a dummy listener for testing and how to plug in the Symfony2 functionality (via a getContainer call to get the DIC).

0 comments voice your opinion now!
symfony2 swiftmailer testing webtest email send


blog comments powered by Disqus

Similar Posts

Paul Jones' Blog: Solar: From Blog to Docs

Timothy Boronczyk's Blog: Paste Ninja (a new kind of pastebin)

Snipe.net: Sending Mail Using PHP and Amazon SES on Centos/AWS Linux

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 10)

Elephant in the Room Podcast: Episode #004: Testing Resistance


Community Events





Don't see your event here?
Let us know!


laravel library project application install podcast threedevsandamaybe wordpress code language interview api series framework list community introduction developer configure release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework