Hal\MutaTesting\Mutation\Mutation::setTestFile PHP Method

setTestFile() public method

public setTestFile ( $testFile )
    public function setTestFile($testFile)
    {
        $this->testFile = $testFile;
        return $this;
    }

Usage Example

 public function factoryFromUnit(UnitInterface $unit)
 {
     $mutation = new Mutation();
     $mutation->setTestFile($unit->getFile())->setTokens(new TokenCollection(array()))->setUnit($unit);
     return $mutation;
 }