<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 09 Jan 2009 21:52:39 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Copy & Paste Detection in PHPUnit 3.2]]></title>
      <guid>http://www.phpdeveloper.org/news/8508</guid>
      <link>http://www.phpdeveloper.org/news/8508</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> <a href="http://sebastian-bergmann.de/archives/693-Copy-Paste-Detection-in-PHPUnit-3.2.html">spotlights another feature</a> of the upcoming <a href="http://www.phpunit.de/">PHPUnit</a> version 3.2 - the inclusion of a <a href="http://sebastian-bergmann.de/archives/690-PHPUnit-as-a-Project-Mess-Detector.html">Project Mess Detector</a>'s ability to help find duplicate code.
</p>
<blockquote>
Duplicate code can be hard to find, especially in a large project. Johann-Peter Hartmann of <a href="http://www.mayflower.de/">MAYFLOWER GmbH</a> recently implemented <a href="http://pmd.sourceforge.net/cpd.html">Copy & Paste Detection</a> 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.
</blockquote>
<p>
In <a href="http://sebastian-bergmann.de/archives/693-Copy-Paste-Detection-in-PHPUnit-3.2.html">his example</a>, <i>Sebastian</i> 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.
</p>
<p>
Check out <a href="http://sebastian-bergmann.de/archives/689-PHPUnit-and-Software-Metrics.html">this list</a> in another post on <i>Sebastian</i>'s blog for more of the metrics that will be included in the upcoming version.
</p>]]></description>
      <pubDate>Wed, 22 Aug 2007 09:31:00 -0500</pubDate>
    </item>
  </channel>
</rss>
