public function testIsBehind()
{
$git = $this->getWorkingCopy();
// The default test branch is not behind the remote.
$git->checkout('test-branch');
$this->assertFalse($git->isBehind());
// Reset the branch to its parent commit, so that it is 1 commit behind.
$git->reset('HEAD^', array('hard' => true));
$this->assertTrue($git->isBehind());
}