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


PHP SimpleCollector类代码示例

本文整理汇总了PHP中SimpleCollector的典型用法代码示例。如果您正苦于以下问题:PHP SimpleCollector类的具体用法?PHP SimpleCollector怎么用?PHP SimpleCollector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: testCollectionIsAddedToGroup

 function testCollectionIsAddedToGroup()
 {
     $group = new MockGroupTest();
     $group->expectMinimumCallCount('addTestFile', 2);
     $group->expectArguments('addTestFile', array(new PatternExpectation('/collectable\\.(1|2)$/')));
     $collector = new SimpleCollector();
     $collector->collect($group, dirname(__FILE__) . '/support/collector/');
 }
开发者ID:Hassanj343,项目名称:candidats,代码行数:8,代码来源:collector_test.php

示例2: testCollectionIsAddedToGroup

 function testCollectionIsAddedToGroup()
 {
     $suite = new MockTestSuite();
     $suite->expectMinimumCallCount('addFile', 2);
     $suite->expect('addFile', array(new PatternExpectation('/collectable\\.(1|2)$/')));
     $collector = new SimpleCollector();
     $collector->collect($suite, dirname(__FILE__) . '/support/collector/');
 }
开发者ID:GerHobbelt,项目名称:simpletest,代码行数:8,代码来源:collector_test.php

示例3: collect

 /**
  *    Delegates to a visiting collector to add test
  *    files.
  *    @param string $path                  Path to scan from.
  *    @param SimpleCollector $collector    Directory scanner.
  *    @access public
  */
 function collect($path, &$collector) {
     $collector->collect($this, $path);
 }
开发者ID:nuckey,项目名称:moodle,代码行数:10,代码来源:test_case.php

示例4: collect

 /**
  *    Delegates to a visiting collector to add test
  *    files.
  * @param string $path Path to scan from.
  * @param SimpleCollector $collector Directory scanner.
  */
 public function collect($path, $collector)
 {
     $collector->collect($this, $path);
 }
开发者ID:kitware,项目名称:cdash,代码行数:10,代码来源:test_case.php

示例5: handle

 /**
  * Attempts to add files that match a given pattern.
  *
  * @see SimpleCollector::_handle()
  * @param object $test    Group test with {@link GroupTest::addTestFile()} method.
  * @param string $path    Directory to scan.
  * @access protected
  */
 protected function handle(&$test, $filename)
 {
     if (preg_match($this->pattern, $filename)) {
         parent::handle($test, $filename);
     }
 }
开发者ID:JamesLinus,项目名称:platform,代码行数:14,代码来源:collector.php

示例6:

 /**
  * Attempts to add files that match a given pattern.
  *
  * @see SimpleCollector::_handle()
  * @param object $test    Group test with {@link GroupTest::addTestFile()} method.
  * @param string $path    Directory to scan.
  * @access protected
  */
 function _handle(&$test, $filename)
 {
     if (preg_match($this->_pattern, $filename)) {
         parent::_handle($test, $filename);
     }
 }
开发者ID:jcorbinredtree,项目名称:framework,代码行数:14,代码来源:collector.php

示例7: isHidden

 protected function isHidden($filename)
 {
     // ignore base.php: with abstract test case class (throws Bad TestSuite [No runnable test cases] otherwise)
     if ($filename == "base.php" || $filename == "index.php") {
         return true;
     }
     return parent::isHidden($filename);
 }
开发者ID:lenybernard,项目名称:mangopay2-php-sdk,代码行数:8,代码来源:all.php


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