News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
Jani Hartikainen's Blog:
Unit testing part 2 Writing and running tests
June 10, 2009 @ 10:26:52

Jani Hartikainen continues his series on unit testing PHP applications with the second part - a look at writing and running some tests (here's the link to part one).

Continuing from the unit test introduction, we will now continue and take a look at how to write tests and ways to run the tests.

He uses one of the standards in the PHP community for unit testing, PHPUnit, and shows how to write a sample test with an assertEquals to check the value of a variable. He also includes the steps to set up the PHPUnit configuration to run the tests and create a test suite.

0 comments voice your opinion now!
tutorial phpunit unittest



Similar Posts

PHP in Action: Real programming with PHP 5.3 (part 1): array processing

DevShed: Improving Exception Throwing when Auto Loading Classes in PHP 5

O'Reilly: Migrating Web-Based PHP Applications to Ajax

Symfony Blog: Symfony and Doctrine 2

IBM developerWorks: Understanding the Zend Framework, Part 3: The feeds


Community Events

phpnw10 PHP Conference 09/10/2010




Don't see your event here?
Let us know!


codeigniter development opinion unittest azure developer plugin introduction example zendframework screencast wordpress database book suggestion phpunit tool framework conference application

All content copyright, 2010 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework