Exemplo n.º 1
0
 function testOnlyMatchedFilesAreAddedToGroup()
 {
     $group = new MockGroupTest();
     $group->expectOnce('addTestFile', array(new PathEqualExpectation(dirname(__FILE__) . '/support/collector/collectable.1')));
     $collector = new SimplePatternCollector('/1$/');
     $collector->collect($group, dirname(__FILE__) . '/support/collector/');
 }
Exemplo n.º 2
0
 public function testOnlyMatchedFilesAreAddedToGroup()
 {
     $suite = new MockTestSuite();
     $suite->expectOnce('addFile', array(new PathEqualExpectation(dirname(__FILE__) . '/support/collector/collectable.1')));
     $collector = new SimplePatternCollector('/1$/');
     $collector->collect($suite, dirname(__FILE__) . '/support/collector/');
 }