PHPUnit pocket guide
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 r...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Beijing ; Sebastopol, California :
O'Reilly
[2006, 2005]
|
Edición: | First edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009626949106719 |
Tabla de Contenidos:
- PHPUnit Pocket Guide; 1. Introduction; 1.2. This Book Is Free; 1.3. Conventions Used in This Book; 1.4. How to Contact Us; 1.5. Acknowledgments; 2. Automating Tests; 3. PHPUnit's Goals; 4. Installing PHPUnit; 5. The Command-Line Test Runner; 6. Fixtures; 6-2. Variations; 6-3. Suite-Level Setup; 7. Testing Exceptions and Performance Regressions; 7-2. Performance Regressions; 8. Incomplete Tests; 9. Test-First Programming; 10. Code-Coverage Analysis; 11. Stubs; 12. Other Uses for Tests; 12-2. Cross-Team Tests; 12-3. Debugging Tests; 12-4. Refactoring; 13. PHPUnit and Phing
- 14. PHPUnit's Implementation15. PHPUnit API; 15-2. PHPUnit2_Framework_Assert; 15-3. PHPUnit2_Framework_Test; 15-4. PHPUnit2_Framework_TestCase; 15-5. PHPUnit2_Framework_TestSuite; 15-6. PHPUnit2_Framework_TestResult; 15-7. Package Structure; 16. Extending PHPUnit; 16-2. Assert Classes; 16-3. Subclass PHPUnit2_Extensions_TestDecorator; 16-4. Implement PHPUnit2_Framework_Test; 16-5. Subclass PHPUnit2_Framework_TestResult; 16-6. Implement PHPUnit2_Framework_TestListener; 16-7. New Test Runner; 17. PHPUnit for PHP 4; 18. Bibliography