You realize there is more to testing than just PHPUnit
You've been doing PHP development for a while but you find yourself constantly battling bugs, working with bits of code that are hard to integrate together, and staying late to do deployments. You know there is a better way through but you have no idea where to start.
You imagine yourself sitting down with an experienced developer -- just you and them, steadily working through problems and learning how to use test-driven development to design the API's and interfaces for your code while making sure nothing leaves development until you're 100% sure it's working.
I designed Minimum Viable Tests to show you how a long-time grumpy programmer writes applications with testing always in the front of their mind. Along the way you'll learn about:
- The concept of "metatesting"
- The basics of what PHPUnit is and how it works
- The role of tests in the development process
- Effective use of test doubles
- Understanding how to mimic your application's environment via bootstrapping
- Writing wrappers around web API calls to make testing easier
- How fixtures and data providers help simplify your tests both today and tomorrow
- When you should use (and not abuse) monkey-patching tools
- The Arrange-Act-Assert test-writing strategy
- How to refactor existing tests
I've been watching and listening to people as they start their journey towards learning testing skills. "Minimum Viable Tests" is designed to be your guide to learning what new things you need to learn and what old habits you will have to change.
Buy the book for US$19 at Leanpub