Exemple #1
0
 /**
  * Returns Code Coverage data per test case.
  *
  * Format of the result array:
  *
  * <code>
  * array(
  *   array(
  *     'test'  => PHPUnit_Framework_Test
  *     'files' => array(
  *       "/tested/code.php" => array(
  *         linenumber => flag
  *       )
  *     )
  *   )
  * )
  * </code>
  *
  * flag < 0: Line is executable but was not executed.
  * flag > 0: Line was executed.
  *
  * @param  boolean $filterTests
  * @return array
  */
 public function getCodeCoverageInformation($filterTests = TRUE)
 {
     return PHPUnit_Util_Filter::getFilteredCodeCoverage($this->codeCoverageInformation, $filterTests);
 }