public testGitPullErrorWithEmptyErrorOutput ( ) |
public function testGitPullErrorWithEmptyErrorOutput()
{
$git = $this->getWorkingCopy();
try {
$git->commit('Nothing to commit so generates an error / not error');
} catch (GitException $exception) {
$errorOutput = $exception->getMessage();
}
$this->assertTrue(strpos($errorOutput, "Your branch is up-to-date with 'origin/master'.") !== false);
}