GitWrapper\Test\GitWorkingCopyTest::getWorkingCopy PHP Method

getWorkingCopy() public method

Clones the local repo and returns an initialized GitWorkingCopy object.
public getWorkingCopy ( string $directory = self::WORKING_DIR ) : GitWorkingCopy
$directory string The directory that the repository is being cloned to, defaults to "test/wc".
return GitWrapper\GitWorkingCopy
    public function getWorkingCopy($directory = self::WORKING_DIR)
    {
        $git = $this->wrapper->workingCopy($directory);
        $git->cloneRepository('file://' . realpath(self::REPO_DIR))->config('user.email', self::CONFIG_EMAIL)->config('user.name', self::CONFIG_NAME)->clearOutput();
        return $git;
    }