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); }
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)); }