コード例 #1
0
ファイル: CommitMessageTest.php プロジェクト: ibou77/elgg
    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));
    }