예제 #1
0
 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
0
 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
0
파일: test_case.php 프로젝트: nuckey/moodle
 /**
  *    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
0
파일: test_case.php 프로젝트: kitware/cdash
 /**
  *    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);
 }