public function testIsAhead()
{
$git = $this->getWorkingCopy();
// The default master branch is not ahead of the remote.
$this->assertFalse($git->isAhead());
// Create a new commit, so that the branch is 1 commit ahead.
file_put_contents(self::WORKING_DIR . '/commit.txt', "created\n");
$git->add('commit.txt')->commit(array('m' => '1 commit ahead.'));
$this->assertTrue($git->isAhead());
}