You can see the class in action, which lets you easily understand its intent and proper use • Real measure of project health and code quality •When new comes, how about old one?
use mock objects to represent classes that are not implemented Green • when the test makes sense and the intent is clear, write method bodies Refactor • now that your tests are green, see what needs to be extracted (create dependencies, remove duplication)
PHP_CodeSniffer logfiles in Checkstyle format) ◦ It is an essential development tool that ensures your code remains clean and consistent. • Clover (for processing PHPUnit code coverage xml output)
phpcpd logfiles in PMD-CPD format) ◦ provide an alternative to them when you just need to get a quick overview of duplicated code in a project • HTML Publisher (for publishing the PHPUnit code coverage report, for instance)
PHP_Depend logfiles in JDepend format) • Plot (for processing phploc CSV output) ◦ phploc is a tool for quickly measuring the size of a PHP project. • PHPDocumentor ◦ A standard auto-documentation tool
PHPMD logfiles in PMD format) It takes a given PHP source code base and look for several potential problems within that source. • Violations (for processing various logfiles) • xUnit (for processing PHPUnit logfiles in JUnit format)