getFiles() public method

Return collated files against which mutations can be generated.
public getFiles ( ) : array
return array
コード例 #1
0
 public function testShouldCollateAllFilesValidForMutationTestingExcludingExcludes()
 {
     $generator = new \Mutagenesis\Generator();
     $generator->setSourceDirectory($this->root);
     $generator->setSourceExcludes(array("*bool1*"));
     $result = count(array_diff(array($this->root . '/library/bool2.php'), $generator->getFiles()));
     $this->assertEquals(0, $result);
 }
コード例 #2
0
 public function testShouldCollateAllFilesValidForMutationTesting()
 {
     $expectedFiles = array($this->root . '/library/bool1.php', $this->root . '/library/bool2.php');
     $generator = new Generator();
     $generator->setSourceDirectory($this->root);
     $result = $generator->getFiles();
     $this->assertEquals(sort($expectedFiles), sort($result));
 }