Unit testing symfony plugins with PHPUnit

Christian Schaefer (08.Oct.2010 at 12:30)
Talk at symfony Day Cologne 2010 (Dutch)

Rating: 5 of 5

When developing symfony plugins for use and reuse in your projects and maybe (hopefully) by the symfony community you want to make sure that a new release doesn't break with backwards compatibility. While symfony comes with lime the de facto standard for unit testing in PHP is PHPUnit and it offers much more. This session will show you some of the best practices of testing symfony plugins. You will learn how to organise your tests and how to reduce your dependencies to the bare essentials.

Who are you?

Claim talk

By clicking this button you are declaring that you are the speaker responsible for it and a claim request will be sent to the administrator of the event.

If the claim is approved you will be able to edit the information for this talk.

Are you sure?

 
Comments closed.

Comments

Rating: 4 of 5

10.Oct.2010 at 17:58 by Jakub Zalas

Excellent talk which occurred to be useful for testing in general and not only for PHPUnit users. Especially it shown the way sfTaskExtraPlugin generates a plugin which is ready for testing.

I'd add one thing to the "Best Practices" section: Name your test methods to show intention of your test. I noticed you're doing it (like testIsInitializedEmpty) but it wasn't listed on that slide.

Rating: 5 of 5

11.Oct.2010 at 07:33 by Daniel Lohse

Your talk was pretty useful, especially considering that Symfony2 will also use PHPUnit for testing – so I can get comfortable with it.

Cloud server hosting by Combell Combell      © Joind.in 2012