News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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.

1 comment voice your opinion now!
tutorial phpunit unittest


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: BitMasks: Emulate Unix Permissions in PHP (Quickly)

PHPMaster.com: Packaging Your Apps with Phar

PHPMaster.com: Reusing Implementation - a Walk-through of Inheritance, Composition, and Delegation

DZone.com: PHPUnit_Selenium

PHP-GTK Community Site: GtkToolbar, GtkMenubar, and PEAR XML-RPC for geo-nick


Community Events

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


php7 performance library laravel podcast conference example opinion series extension api introduction framework voicesoftheelephpant release community symfony2 install version interview

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