PHPUnitManual:Contents

From 흡혈양파의 번역工房
Revision as of 10:30, 4 July 2013 by Onionmixer (talk | contribs) (PHPUnit 목차 페이지 내용추가)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
목차

본문

1. Automating Tests


2. PHPUnit's Goals


3. Installing PHPUnit


4. Writing Tests for PHPUnit

  • 4.1 Test Dependencies
  • 4.2 Data Providers
  • 4.3 Testing Exceptions
  • 4.4 Testing PHP Errors
  • 4.5 Testing Output
  • 4.6 Assertions
  • 4.7 Error output
  • 4.8 Edge cases


5. The Command-Line Test Runner

  • 5.1 Command-Line switches


6. Fixtures

  • 6.1 More setUp() than tearDown()
  • 6.2 Variations
  • 6.3 Sharing Fixture
  • 6.4 Global State


7. Organizing Tests

  • 7.1 Composing a Test Suite Using the Filesystem
  • 7.2 Composing a Test Suite Using XML Configuration


8. Database Testing

  • 8.1 Supported Vendors for Database Testing
  • 8.2 Difficulties in Database Testing
  • 8.3 The four stages of a database test
  • 8.4 Configuration of a PHPUnit Database TestCase
  • 8.5 Understanding DataSets and DataTables
  • 8.6 The Connection API
  • 8.7 Database Assertions API
  • 8.8 Frequently Asked Questions


9. Incomplete and Skipped Tests

  • 9.1 Incomplete Tests
  • 9.2 Skipping Tests
  • 9.3 Skipping Tests using @requires


10. Test Doubles

  • 10.1 Stubs
  • 10.2 Mock Objects
  • 10.3 Stubbing and Mocking Web Services
  • 10.4 Mocking the Filesystem


11. Testing Practices

  • 11.1 During Development
  • 11.2 During Debugging


12. Test-Driven Development

  • 12.1 BankAccount Example


13. Behaviour-Driven Development

  • 13.1 BowlingGame Example


14. Code Coverage Analysis

  • 14.1 Specifying Covered Methods
  • 14.2 Ignoring Code Blocks
  • 14.3 Including and Excluding Files
  • 14.4 Edge cases


15. Other Uses for Tests

  • 15.1 Agile Documentation
  • 15.2 Cross-Team Tests


16. Skeleton Generator

  • 16.1 Generating a Test Case Class Skeleton
  • 16.2 Generating a Class Skeleton from a Test Case Class


17. PHPUnit and Selenium

  • 17.1 Selenium Server
  • 17.2 Installation
  • 17.3 PHPUnit_Extensions_Selenium2TestCase
  • 17.4 PHPUnit_Extensions_SeleniumTestCase


18. Logging

  • 18.1 Test Results (XML)
  • 18.2 Test Results (TAP)
  • 18.3 Test Results (JSON)
  • 18.4 Code Coverage (XML)
  • 18.5 Code Coverage (TEXT)


19. Extending PHPUnit

  • 19.1 Subclass PHPUnit_Framework_TestCase
  • 19.2 Write custom assertions
  • 19.3 Implement PHPUnit_Framework_TestListener
  • 19.4 Subclass PHPUnit_Extensions_TestDecorator
  • 19.5 Implement PHPUnit_Framework_Test


부록

A. Assertions


B. Annotations


C. The XML Configuration File

  • PHPUnit
  • Test Suites
  • Groups
  • Including and Excluding Files for Code Coverage
  • Logging
  • Test Listeners
  • Setting PHP INI settings, Constants and Global Variables
  • Configuring Browsers for Selenium RC


D. Index


E. Bibliography


F. Copyright