当前位置: 首页>>代码示例>>PHP>>正文


PHP PHP_CodeCoverage_Filter::isFiltered方法代码示例

本文整理汇总了PHP中PHP_CodeCoverage_Filter::isFiltered方法的典型用法代码示例。如果您正苦于以下问题:PHP PHP_CodeCoverage_Filter::isFiltered方法的具体用法?PHP PHP_CodeCoverage_Filter::isFiltered怎么用?PHP PHP_CodeCoverage_Filter::isFiltered使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHP_CodeCoverage_Filter的用法示例。


在下文中一共展示了PHP_CodeCoverage_Filter::isFiltered方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: applyListsFilter

 /**
  * Applies the blacklist/whitelist filtering.
  *
  * @param array $data
  * @param array $filterGroups
  */
 protected function applyListsFilter(&$data, $filterGroups)
 {
     foreach (array_keys($data) as $filename) {
         if ($this->filter->isFiltered($filename, $filterGroups)) {
             unset($data[$filename]);
         }
     }
 }
开发者ID:reflectivedevelopment,项目名称:jfh-lib,代码行数:14,代码来源:CodeCoverage.php

示例2: applyListsFilter

 /**
  * Applies the blacklist/whitelist filtering.
  *
  * @param array $data
  */
 private function applyListsFilter(array &$data)
 {
     foreach (array_keys($data) as $filename) {
         if ($this->filter->isFiltered($filename)) {
             unset($data[$filename]);
         }
     }
 }
开发者ID:Ingothq,项目名称:multiarmedbandit,代码行数:13,代码来源:CodeCoverage.php

示例3: filter

 /**
  * Performs blacklist and whitelist as well as @codeCoverageIgnore* filtering.
  *
  * @param array $data
  */
 private function filter(array &$data)
 {
     foreach (array_keys($data) as $filename) {
         if ($this->filter->isFiltered($filename)) {
             unset($data[$filename]);
             continue;
         }
         foreach ($this->parser->getLinesToBeIgnored($filename) as $line) {
             unset($data[$filename][$line]);
         }
         if (empty($data[$filename])) {
             unset($data[$filename]);
         }
     }
 }
开发者ID:Aranjedeath,项目名称:l4-starter,代码行数:20,代码来源:Driver.php

示例4: merge

 /**
  * Merges the data from another instance of PHP_CodeCoverage.
  *
  * @param PHP_CodeCoverage $that
  */
 public function merge(PHP_CodeCoverage $that)
 {
     foreach ($that->data as $file => $lines) {
         if (!isset($this->data[$file])) {
             if (!$this->filter->isFiltered($file)) {
                 $this->data[$file] = $lines;
             }
             continue;
         }
         foreach ($lines as $line => $data) {
             if ($data !== null) {
                 if (!isset($this->data[$file][$line])) {
                     $this->data[$file][$line] = $data;
                 } else {
                     $this->data[$file][$line] = array_unique(array_merge($this->data[$file][$line], $data));
                 }
             }
         }
     }
     $this->tests = array_merge($this->tests, $that->getTests());
 }
开发者ID:limweb,项目名称:webappservice,代码行数:26,代码来源:CodeCoverage.php


注:本文中的PHP_CodeCoverage_Filter::isFiltered方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。