public function testRemovesComments()
{
$text = <<<___TEXT
These are lines of text
# this is a comment
# and another one.
And more text
___TEXT;
$expected = "These are lines of text\nAnd more text";
$this->assertSame($expected, CommitMessage::removeComments($text));
}