Learn how a Grumpy Programmer approaches testing PHP applications, covering both the technical and core skills you need to learn in order to make testing just a thing you do instead of a thing you struggle with.


I feel that testing, as a concept, is hard to explain to beginning programmers: “we are going to write code that is going to make sure your other code works as expected”. The assumption that underlies all this is that you already understand how to write computer programs in your chosen language! This makes it very difficult to teach to beginner or inexperienced programmers. When you combine this with how PHP does not force any particular structure on you, you have an environment where only the folks who are really motivated end up learning about testing.


The Grumpy Programmer’s Guide To Testing PHP Applications is my way to try and provide some help for developers who are looking to become more test-centric and reap the benefits of automated testing and related tooling like static analysis and automation. I believe that by learning the skills (both technical and core) surrounding testing you will be able to write tests using almost any testing framework and almost any PHP application.


The book combines all the material from my previous books, adds new material, and revisits some old topics where my experiences have changed my thoughts. I break the vast topic of testing into smaller chunks, along with providing lots of examples and explanations of how I approach testing applications. Some of the things I cover are:

  • Test-Driven development
  • Strategies for Test-After practices
  • Test refactoring strategies
  • How PHPUnit itself works
  • Complementary tools and approaches like static analysis and mutation testing
  • Learning the core skills you need to get other people testing their code


Table of Contents

1. Introduction

2. Changing How We Think About Tests

3. What Are Tests?

4. How PHPUnit Works

5. Test Double

6. Test-Driven Development by Example

7. Test-After Development by Example

8. Refactoring Helpers

9. Testing APIs

10. Data Providers

11. Wrappers

12. Metatesting

13. Building a Testing Culture

14. Bootstrapping

15. No Tests? No Problem!

16. Nobody Is Running the Tests!

17. “You’re Not Getting Paid to Test!”

18. It’s About People


About the Author

Chris Hartjes "The Grumpy Programmer's Guide To Building Testable PHP Applications" gives you a solid introduction to the concepts a PHP programmer needs to master in order to write code that can easily be tested using today's powerful automated testing tools. Hi, I'm Chris Hartjes.

ISBN

9781940111797

برند

php[architect]

تعداد صفحات

150

سال

2020

course image

ایزی اگزم

90%رضایت مشتریان عملکرد عالی

نام مولف:

John Priece

نام ناشر:

php[architect]

موجود نیست

متأسفانه این محصول در حال حاضر موجود نمی باشد