Property | Type | Description | |
---|---|---|---|
$_files | array | Collated files against which mutations can be generated | |
$_mutables | The collection of possible mutations stored as sets of mutation instructions (allowing us to apply and reverse mutations on the fly) | ||
$_sourceDirectory | string | Path to the source directory of the project being mutated |
Method | Description | |
---|---|---|
generate ( $mutableObject = null ) : void | Given a source directory (@see \Mutagenesis\Generator::setSourceDirectory) pass each to a \Mutagenesis\Mutable instance which is used to generate mutations and store the instructions for applying and reversing them as a set of mutables (instances of \Mutagenesis\Mutation). | |
getFiles ( ) : array | Return collated files against which mutations can be generated. | |
getMutables ( ) : |
Return an array of mutable files. | |
getSourceDirectory ( ) : string | Get the source directory of the source code to be mutated | |
setSourceDirectory ( string $sourceDirectory ) | Set the source directory of the source code to be mutated |
Method | Description | |
---|---|---|
_collateFiles ( $target ) : void | Collate all files capable of being mutated. For now, this only considers files ending in the PHP extension. |
protected _collateFiles ( $target ) : void | ||
return | void |
public getMutables ( ) : |
||
return |
public getSourceDirectory ( ) : string | ||
return | string |
public setSourceDirectory ( string $sourceDirectory ) | ||
$sourceDirectory | string |
protected array $_files | ||
return | array |
protected Mutable[],Mutagenesis $_mutables | ||
return |
protected string $_sourceDirectory | ||
return | string |