Esempio n. 1
0
 public function apply(PHPUnit_Util_Metrics $metrics)
 {
     $npath = $metrics->getNPath();
     if ($npath >= $this->threshold) {
         return sprintf("The NPath complexity is %d.\n" . 'The NPath complexity of a function or method is the number of ' . 'acyclic execution paths through that method. A threshold of 200 ' . 'is generally considered the point where measures should be taken ' . 'to reduce complexity.', $npath);
     }
 }