當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。