PHP code example of reinfi / ecs-junit-formatter
1. Go to this page and download the library: Download reinfi/ecs-junit-formatter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
reinfi / ecs-junit-formatter example snippets
use Reinfi\EasyCodingStandard\JUnitOutputFormatter;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\Contract\Console\Output\OutputFormatterInterface;
if (isset($ecsConfig) && $ecsConfig instanceof ECSConfig) {
$ecsConfig->singleton(JUnitOutputFormatter::class);
}
return ECSConfig::configure()
[...]
->withPaths([__DIR__ . '/src']);
php vendor/bin/ecs --output-format=junit