本文整理匯總了PHP中SimpleCollector::collect方法的典型用法代碼示例。如果您正苦於以下問題:PHP SimpleCollector::collect方法的具體用法?PHP SimpleCollector::collect怎麽用?PHP SimpleCollector::collect使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SimpleCollector
的用法示例。
在下文中一共展示了SimpleCollector::collect方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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/');
}
示例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/');
}
示例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);
}
示例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);
}