Jump to ratings and reviews
Rate this book

The Grumpy Programmer's PHPUnit Cookbook

Rate this book
Learning how to use PHPUnit doesn't have to suck
Your code is untested and fixing bugs is tedious
You know you need something better, but time just doesn't seem to be on your side. Making things "right" is costly and you need to deliver working code NOW.

Writing tests is time-consuming and you're not sure how to fit it in
Tests would be great but there are real deadlines to meet. You can't stop development and churn away for hours just to add tests around what you know already works.

PHPUnit is the unit testing framework of choice, but it's intimidating
It looks hard to use and difficult to understand. You have little-to-no experience with it and just figuring out where to start feels daunting. You're left wondering how you use it to test all this stuff you're responsible for.

You don't have time to slow down development
You need to write solid, bug-free code, but your path is filled with manual tests and an application that breaks every time you change it.

You could go home from work, on-time and happy.
Life would be sweet with a solid set of tests
If you already had tests, you'd probably catch bugs faster.

You could refactor your code ruthlessly
Your tests would tell you when a requirements change broke something.

With tests, you'd push code to production with confidence
No longer would you dread the bug reports. You'd happily make changes knowing that your safety net is there. You'd try out new features guiding yourself with tests.

You can make this happen after reading "The Grumpy Programmer's PHPUnit Cookbook"
You'll know exactly how to tackle your existing code.

You'll know how to drive new features with your tests.

You'll write tests that run fast and keep you moving quickly.

66 pages, ebook

First published December 14, 2014

2 people are currently reading
15 people want to read

About the author

Chris Hartjes

11 books5 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (10%)
4 stars
6 (60%)
3 stars
1 (10%)
2 stars
1 (10%)
1 star
1 (10%)
Displaying 1 - 3 of 3 reviews
Profile Image for Yaroslav.
41 reviews1 follower
May 20, 2013
Good book if know nothing about PHPUnit.
Profile Image for Vaidas.
29 reviews1 follower
May 25, 2014
Easy to read. With examples and insights how to create testable application and it's tests
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.