News Feed
Sections




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

Sebastian Bergmann's Blog:
Test Dependencies in PHPUnit 3.4
November 14, 2008 @ 10:25:20

Sebastian Bergmann talks about a new bit of functionality he's put into the 3.4 release of PHPUnit (the popular unit testing tool for PHP) based on a suggestion from a paper he'd read:

Back in July, I came across an academic paper (more academic papers on testing that I read recently) titled "JExample: Exploiting Dependencies Between Tests to Improve Defect Localization". [...] For the upcoming PHPUnit 3.4 I have implemented support for the idea expressed in the paper mentioned above.

The feature is a system that helps localize problems at the source, stripping away all of the cascading issues it might have tripped off, causing other tests to fail. This new feature (as illustrated by his code example using a DependencyFailureTest class) makes it simple to fail a test immediately whenever the scripts needs to via a fail() method. Check out the full post for the rest of the code and some further explanation on how it works.

1 comment voice your opinion now!
phpunit test dependencies fail cascade source defect localization


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Setting up your Zend_Test test suites

Sebastian Bergmann's Blog: Zend/PHP Conference 2006

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 3

DZone.com: Open/Closed Principle on real world code

Suspekt Blog: Suhosin Patch 0.9.8 for PHP 5.3.0 *BETA* - Please Test


Community Events





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


threedevsandamaybe bugfix series language application release wordpress introduction configure library developer podcast list framework community code interview project laravel api

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