Book description
Smart web developers will tell you that the sooner you detect your code mistakes, the quicker you can fix them, and the less the project will cost in the long run. Well, the most efficient way to detect your mistakes in PHP is with PHPUnit, an open source framework that automates unit testing by running a battery of tests as you go. The benefits of PHPUnit are significant:
- a reduction in the effort required to frequently test code
- fewer overall defects
- added confidence in your code
- improved relations with your open source teammates
The only problem with this popular testing tool was its lack of documentation-until now, that is. For this, O'Reilly went right to the source, as Sebastian Bergmann, the author of PHPUnit Pocket Guide, also happens to be PHPUnit's creator. This little book brings together hard-to-remember information, syntax, and rules for working with PHPUnit. It also delivers the insight and sage advice that can only come from the technology's creator. Coverage of testing under agile methodologies and Extreme Programming (XP) is also included.
The latest in O'Reilly's series of handy Pocket Guides, this quick-reference book puts all the answers are right at your fingertips. It's an invaluable companion for anyone interested in testing the PHP code they write for web applications.
Publisher resources
Table of contents
-
PHPUnit Pocket Guide
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Copyright
- 1. Introduction
- 2. Automating Tests
- 3. PHPUnit's Goals
- 4. Installing PHPUnit
- 5. The Command-Line Test Runner
- 6. Fixtures
- 7. Testing Exceptions and Performance Regressions
- 8. Incomplete Tests
- 9. Test-First Programming
- 10. Code-Coverage Analysis
- 11. Stubs
- 12. Other Uses for Tests
- 13. PHPUnit and Phing
- 14. PHPUnit's Implementation
- 15. PHPUnit API
- 16. Extending PHPUnit
- 17. PHPUnit for PHP 4
- 18. Bibliography
- Index
- About the Author
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
Product information
- Title: PHPUnit Pocket Guide
- Author(s):
- Release date: September 2005
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596553470
You might also like
book
Mastering PHP 7
Effective, readable, and robust codes in PHP Key Features [*] Leverage the newest tools available in …
book
Mastering Symfony
Orchestrate the designing, development, testing, and deployment of web applications with Symfony About This Book Create …
book
PHP 7: Real World Application Development
Use new features of PHP 7 to solve practical, real-world problems faced by PHP developers like …
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …