public function testGetOutput()
{
$git = $this->getWorkingCopy();
// Test getting output of a simple status command.
$output = (string) $git->status();
$this->assertTrue(strpos($output, 'nothing to commit') !== false);
// Getting output should clear the buffer.
$cleared = (string) $git;
$this->assertEmpty($cleared);
}