PHPUnit Pocket Guide: Test-Driven Development in PHP
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.

1141645842
PHPUnit Pocket Guide: Test-Driven Development in PHP
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.

9.95 In Stock
PHPUnit Pocket Guide: Test-Driven Development in PHP

PHPUnit Pocket Guide: Test-Driven Development in PHP

by Sebastian Bergmann
PHPUnit Pocket Guide: Test-Driven Development in PHP

PHPUnit Pocket Guide: Test-Driven Development in PHP

by Sebastian Bergmann

Paperback

$9.95 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

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.


Product Details

ISBN-13: 9780596101039
Publisher: O'Reilly Media, Incorporated
Publication date: 10/01/2005
Pages: 87
Product dimensions: 4.25(w) x 7.00(h) x 0.27(d)

About the Author

Sebastian Bergmann studies Computer Science at the University of Bonn in Germany . and spends his free time developing Free Software. A member of the PHP and Gentoo Linux development teams and author of a variety of PHP software projects, including PHPUnit and phpOpenTracker, he writes for both print and online media and is a frequent speaker at conferences. In January 2005, Sebastian published his first book ("Professionelle Softwareentwicklung mit PHP 5"5") with the German dpunkt.verlag GmbH.

Table of Contents

Copyright;
Chapter 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;
Chapter 2: Automating Tests;
Chapter 3: PHPUnit's Goals;
Chapter 4: Installing PHPUnit;
Chapter 5: The Command-Line Test Runner;
Chapter 6: Fixtures;
6-1 More setUp( ) than tearDown( );
6-2 Variations;
6-3 Suite-Level Setup;
Chapter 7: Testing Exceptions and Performance Regressions;
7-1 Exceptions;
7-2 Performance Regressions;
Chapter 8: Incomplete Tests;
Chapter 9: Test-First Programming;
9-1 BankAccount Example;
Chapter 10: Code-Coverage Analysis;
Chapter 11: Stubs;
11-1 Self-Shunting;
Chapter 12: Other Uses for Tests;
12-1 Agile Documentation;
12-2 Cross-Team Tests;
12-3 Debugging Tests;
12-4 Refactoring;
Chapter 13: PHPUnit and Phing;
13-1 Formatting Feedback;
Chapter 14: PHPUnit's Implementation;
Chapter 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;
Chapter 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;
Chapter 17: PHPUnit for PHP 4;
Chapter 18: Bibliography;

From the B&N Reads Blog

Customer Reviews