1.
Chapter 1 Introduction
1.
Requirements
2.
This Book Is Free
3.
Conventions Used in This Book
4.
How to Contact Us
5.
Acknowledgments
2.
Chapter 2 Automating Tests
3.
Chapter 3 PHPUnit's Goals
4.
Chapter 4 Installing PHPUnit
5.
Chapter 5 The Command-Line Test Runner
6.
Chapter 6 Fixtures
1.
More setUp() than tearDown()
2.
Variations
3.
Suite-Level Setup
7.
Chapter 7 Testing Exceptions and Performance Regressions
1.
Exceptions
2.
Performance Regressions
8.
Chapter 8 Incomplete Tests
9.
Chapter 9 Test-First Programming
1.
BankAccount Example
10.
Chapter 10 Code-Coverage Analysis
11.
Chapter 11 Stubs
1.
Self-Shunting
12.
Chapter 12 Other Uses for Tests
1.
Agile Documentation
2.
Cross-Team Tests
3.
Debugging Tests
4.
Refactoring
13.
Chapter 13 PHPUnit and Phing
1.
Formatting Feedback
14.
Chapter 14 PHPUnit's Implementation
15.
Chapter 15 PHPUnit API
1.
Overview
2.
PHPUnit2_Framework_Assert
3.
PHPUnit2_Framework_Test
4.
PHPUnit2_Framework_TestCase
5.
PHPUnit2_Framework_TestSuite
6.
PHPUnit2_Framework_TestResult
7.
Package Structure
16.
Chapter 16 Extending PHPUnit
1.
Subclass PHPUnit2_Framework_TestCase
2.
Assert Classes
3.
Subclass PHPUnit2_Extensions_TestDecorator
4.
Implement PHPUnit2_Framework_Test
5.
Subclass PHPUnit2_Framework_TestResult
6.
Implement PHPUnit2_Framework_TestListener
7.
New Test Runner
17.
Chapter 17 PHPUnit for PHP 4
18.
Chapter 18 Bibliography
· · · · · · (
收起)