News Feed
Jobs Feed
Sections




News Archive
Jani Hartikainen's Blog:
Unit testing 3 Writing tests for existing code
June 18, 2009 @ 09:33:40

On his blog today, Jani Hartikainen has posted the third part of his series looking at unit testing in PHP applications.

Now that you know what unit testing is and how to write and run tests, it's time to look at writing tests in more depth. Today we'll take an example class and write tests for it. We'll also introduce some common testing methodologies.

He creates the sample test (this one), makes a sample testing class for it and looks at the difference between testing code and testing behavior.

0 comments voice your opinion now!
example tutorial unittesting


blog comments powered by Disqus

Similar Posts

DevShed: Creating an Error Handling Module for a PHP 5 File Uploader

DZone.com: Record and replay for testing of legacy PHP applications

Anthony Ferrara: Mediators - Programming With Anthony

Gonzalo Ayuso: Dependency Injection Containers with PHP. When Pimple is not enough.

C7Y: Step Away From the SuperGlobals! An Introduction to Inspekt


Community Events









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


functional zendframework2 database example unittest opinion development framework community interview introduction composer object release api language testing code phpunit event

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