file-fetcher
Variables
coverage-checker.php File Reference

Variables

 $inputFile = __DIR__ . '/../build/logs/clover.xml'
 
 $percentage = min(100, max(0, (int) $argv[1]))
 
if(!file_exists($inputFile)) if(! $percentage) $xml = new SimpleXMLElement(file_get_contents($inputFile))
 
 $metrics = $xml->xpath('//metrics')
 
 $totalElements = 0
 
 $checkedElements = 0
 
foreach($metrics as $metric) $coverage = ($checkedElements / $totalElements) * 100
 
 if ( $coverage< $percentage)
 

Variable Documentation

◆ $checkedElements

$checkedElements = 0

◆ $coverage

foreach ( $metrics as $metric) $coverage = ($checkedElements / $totalElements) * 100

◆ $inputFile

$inputFile = __DIR__ . '/../build/logs/clover.xml'

◆ $metrics

$metrics = $xml->xpath('//metrics')

◆ $percentage

$percentage = min(100, max(0, (int) $argv[1]))

◆ $totalElements

$totalElements = 0

◆ $xml

if (!file_exists( $inputFile)) if (! $percentage) $xml = new SimpleXMLElement(file_get_contents($inputFile))

◆ if

if($coverage< $percentage)