Learning how to use PHPUnit doesn't have to suck
PHPUnit is the most commonly-used unit testing framework for PHP developers. While it's very powerful it also has a big learning curve. You know now is the time to learn how to use it but you have no idea where to start. There are lots of examples but you need some guidance. It all seems very intimidating and you just need to be shown a path to get you started.
This collection of PHPUnit tips and working examples is designed to give you one place to look to learn the basics of using PHPUnit. You're not a bad programmer for not understanding how to use a testing tool!
In this book I cover the following:
- How PHPUnit actually works to find and run your tests
- Creating test doubles
- Creating data providers
- Data fixtures that grow along with your application
- How PHPUnit can be used to test API's
- How to configure and use it's built-in database testing tool DBUnit
- How to test exceptions
The Grumpy Programmer's PHPUnit Cookbook is a collection of tips and tricks for making PHPUnit do what you need instead of being a tool you fight with and set aside.
Buy the book for US$19 at Leanpub