getFiles() public method

Return collated files against which mutations can be generated.
public getFiles ( ) : array
return array
Exemplo n.º 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);
 }
Exemplo n.º 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));
 }