public function testCommitWithAuthor()
{
$git = $this->getWorkingCopy();
file_put_contents(self::WORKING_DIR . '/commit.txt', "created\n");
$this->assertTrue($git->hasChanges());
$git->add('commit.txt')->commit(array('m' => 'Committed testing branch.', 'a' => true, 'author' => 'test <[email protected]>'));
$output = (string) $git->log();
$this->assertContains('Committed testing branch', $output);
$this->assertContains('Author: test <[email protected]>', $output);
}