News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Sebastian Bergmann's Blog:
Copy & Paste Detection in PHPUnit 3.2
August 22, 2007 @ 09:31:00

Sebastian Bergmann spotlights another feature of the upcoming PHPUnit version 3.2 - the inclusion of a Project Mess Detector's ability to help find duplicate code.

Duplicate code can be hard to find, especially in a large project. Johann-Peter Hartmann of MAYFLOWER GmbH recently implemented Copy & Paste Detection for PHPUnit's growing set of features that extends its usage scenarios beyond "just unit testing" to a one-stop solution for quality assurance in PHP-based projects.

In his example, Sebastian shows what the response will look like when the tests find duplicate code - giving details like the files involved and the code fragment that was duplicated.

Check out this list in another post on Sebastian's blog for more of the metrics that will be included in the upcoming version.

1 comment voice your opinion now!
phpunit unittest metric software copyandpaste detection mess detector phpunit unittest metric software copyandpaste detection mess detector




Similar Posts

Sebastian Bergmann's Blog: PHP-GTK2 Testrunner for PHPUnit

Sameer Borate's Blog: Selenium IDE Tutorial - Part 2

Alexander Netkachev's Blog: Automatic testing of MVC applications created with Zend Framework

Sebastian Bergmann's Blog: So Long, and Thanks for all the PEARs

Alexander Netkachev's Blog: Automatic testing of MVC applications created with Zend Framework


Community Events







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


code zendframework book release security job application developer releases ajax cakephp zend PEAR example PHP5 package mysql framework conference database

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