
Modern Testing with PHP
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
As a seasoned PHP developer, you've mastered classes, objects, and interfaces, yet bugs continue to surface after deployment, and often your clients are the ones discovering them. Frustrated by the tedious debugging and the stress of unexpected issues, you've decided it's time to elevate your skills. You've dabbled with PHPUnit, grasping the theory, but applying it effectively to real-world projects feels overwhelming. Questions like how to write meaningful tests, how many to create, and whether to test before or after coding keep you second-guessing your approach.
This book is your opportunity to leave behind the frustration of unreliable code and embrace a structured, confidence-building testing process. Modern Testing with PHP offers a practical roadmap, starting with foundational concepts and step-by-step guidance for installing tools, moving from manual testing to fully automated frameworks. Along the way, you'll gain a deeper understanding of what to test and why, learning strategies that provide proof your software works as intended. With this knowledge, you'll deploy with assurance and take pride in the quality of your work.
Packed with real-world examples, exercises, and actionable insights, this book equips you to transform your testing skills, regardless of your project's framework. You'll bridge the gap between theory and practice, building a robust testing foundation applicable to any PHP application. By the end, you'll not only deliver reliable software but also have a toolset that simplifies development and enhances your professional confidence.
You Will Learn:
- How to leverage TDD to improve your code
- How to implement ATDD
- How to make the most of PHPUnit
- How to write effective tests for your code
This Book for:
Intermediate/advanced PHP developers looking to deploy with increased confidence.
More details
Other editions
Additional editions

Person
Mauro Chojrin is a senior software developer with more than 20 years of experience ranging from small startups to multinational companies. Currently, he works as a technical coach, helping software development teams become more efficient by embracing XP practices.
Content
Chapter 1: About Automated Tests.- Chapter 2: Introduction to PHPUnit.- Chapter 3: Advanced uses of PHPUnit.- Chapter 4: Test Last.- Chapter 5: Test First.- Chapter 6: Testing from the outside in.- Chapter 7: Case study.
System requirements
File format: PDF
Copy protection: Watermark-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Use the free software Adobe Reader, Adobe Digital Editions, or any other PDF viewer of your choice (see eBook Help).
- Tablet/Smartphone (Android; iOS): Install the free app Adobe Digital Editions or another reading app for eBooks, e.g., PocketBook (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Watermark-DRM, a „soft” copy protection. This means that there are no technical restrictions to prevent illegal distribution. However, there is a personalised watermark embedded in the eBook that can be used to identify the purchaser of the eBook in the event of misuse and to provide evidence for legal purposes.
For more information, see our eBook Help page.