does anyone know the alternative for –log-pmd,–log-metrics?
<arg line="--colors --coverage-html ${basedir}/build/report
--log-junit ${basedir}/build/logs/phpunit.xml
--log-pmd ${basedir}/build/logs/phpunit.pmd.xml
--log-metrics ${basedir}/build/logs/phpunit.metrics.xml
--coverage-clover ${basedir}/build/logs/phpunit.coverage.xml
AllTests.php"/>
in phpunit 3.6 does not have –log-pmd,–log-metrics commands please anyone tell how do i write these command in 3.6 phpunit version
PHPUnit 3.6 does not have the functionally behind those switches anymore.
--log-pmdwas removed because of the way more useful and more powerful projectPHPMD - PHP Mess Detectorthat you can use standalone without phpunitWhile
--log-metricswas removed and for all things metrics you want to turn to thePHP_Depend software analyzer and metric tool.For basic metrics and a project size overview (loc, nloc, cc, avg. cc/method) there is the
phploccommand line tool.Documentation on how to use those tools (with ant)
can be found over at
jenkins-php.org. Looking at the build.xml you will see how to use those to generate CLI and xml output.