Signed Copies Of My Books
I do offer printed copies of all my books. If you want a signed one, it will be double the regular cost, includes shipping world wide. Contact me if you are looking for one.
Building Test-Driven Developers
Long-time PHP testing advocate Chris Hartjes takes a look at one of the least-understood parts of testing computer software -- managing the expectations of people. In this book Chris draws on his experience of over a decade of helping developers build the skills needed to become good at testing and talks about how tests are written by people, not machines. His views on what to do when there are no tests but you want some, or what to do with a test suite nobody likes will challenge your thoughts on what testing is really about.
"Building Test-Driven Developers" covers:
- What is a "testing culture"
- Handling things when there are no tests
- Why testing should be "just part of the job"
- Dealing with tests nobody runs
- Does "Chicago vs. London" really matter?
- Dealing with difficult people
You need people skills to go along with all those great testing skills you've been building. Chris is here to help with those too!
Minimum Viable Tests
You've been doing PHP development for a while but you find yourself constantly battling bugs, finding it hard to integrate bits of code together, and staying late to do deployments. You know there is a better way through test-driven development 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.
In "Minimum Viable Tests" long-time PHP testing evangelist Chris Hartjes goes over what his experiences lead him to believe are the basic concepts surrounding test-driven development. You'll learn about:
- Chris' 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
Chris has been watching and listening to people as they start their journey towards become test-driven developers. "Minimum Viable Tests" is designed to be your guide on the path to having well-tested, confidently-deployed PHP applications.
The Grumpy Programmer's PHPUnit Cookbook
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 master it but you have no where to start. There's lots of examples but you need some guidance on how to use it's features.
I'm a long-time PHP developer who has been promoting testing practices since 2005. Now, I want to help you learn to use PHPUnit to create tests that give you confidence that your code is on the right track.
You'll know exactly how to tackle your existing code. You'll learn how to drive new features with your tests. You'll write tests that run fast and keep you moving quickly. Here's what I cover:
- How PHPUnit actually works
- Creating test doubles
- Creating data providers
- Data fixtures that grow along with your application
- How PHPUnit can be used to test API's
- Using DBUnit
- How to test exceptions
My book "The Grumpy Programmer's PHPUnit Cookbook" is a collection of tips and tricks for making PHPUnit do what you need it do in order to write tests for your code. With the information contained in this book you will get a jump start to make writing tests something you do effortlessly.
We have a mailing list that you can join that drops some grumpy knowledge in your inbox on an irregular basis. We hate spam as much as you do, so we pledge to never give your email address to any third parties.