Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
Advertisement
  1. Code
  2. PHP

Hands-On Unit Testing With PHPUnit

Read Time: 1 min
This post is part of a series called Test-Driven PHP.
All About Mocking with PHPUnit
How to Use Selenium 2 With PHPUnit

In this screencast, we'll build a relatively simple class, using TDD techniques. Along the way, we'll discuss various PHPUnit methods, how to create mock objects, and more! I encourage you to work along; it's the best way to learn!

Please choose 720p for optimal viewing.

Closing Thoughts

As with anything, there are various ways to approach test-driven development. Like they say, it doesn't matter as much how you test, as long as you are testing. If you have a different approach, let us know in the comments. I'd love to learn more!

Advertisement
Did you find this post useful?
Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.