PHPUnit Pocket Guide - Helion
ISBN: 978-05-965-5347-0
stron: 90, Format: ebook
Data wydania: 2005-09-29
Księgarnia: Helion
Cena książki: 29,67 zł (poprzednio: 34,50 zł)
Oszczędzasz: 14% (-4,83 zł)
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.
Osoby które kupowały "PHPUnit Pocket Guide", wybierały także:
- Tablice informatyczne. PHP7 19,67 zł, (5,90 zł -70%)
- PHP. Obiekty, wzorce, narzędzia. Wydanie V 115,81 zł, (35,90 zł -69%)
- PHP i jQuery. Techniki zaawansowane. Wydanie II 65,31 zł, (20,90 zł -68%)
- PHP i MySQL. Kurs video. Tw 148,98 zł, (59,59 zł -60%)
- Naucz si 129,00 zł, (51,60 zł -60%)
Spis treści
PHPUnit Pocket Guide eBook -- spis treści
- PHPUnit Pocket Guide
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Copyright
- 1. Introduction
- 1.1. Requirements
- 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. PHPUnits Goals
- 4. Installing PHPUnit
- 5. The Command-Line Test Runner
- 6. Fixtures
- 6-1. More setUp() than tearDown()
- 6-2. Variations
- 6-3. Suite-Level Setup
- 7. Testing Exceptions and Performance Regressions
- 7-1. Exceptions
- 7-2. Performance Regressions
- 8. Incomplete Tests
- 9. Test-First Programming
- 9-1. BankAccount Example
- 10. Code-Coverage Analysis
- 11. Stubs
- 11-1. Self-Shunting
- 12. Other Uses for Tests
- 12-1. Agile Documentation
- 12-2. Cross-Team Tests
- 12-3. Debugging Tests
- 12-4. Refactoring
- 13. PHPUnit and Phing
- 13-1. Formatting Feedback
- 14. PHPUnit's Implementation
- 15. PHPUnit API
- 15-1. Overview
- 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-1. Subclass PHPUnit2_Framework_TestCase
- 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
- Index
- About the Author
- SPECIAL OFFER: Upgrade this ebook with OReilly