Elgg\CommitMessageTest::testFindLengthyLinesFindsLinesOverTheMaxLineLength PHP Method

testFindLengthyLinesFindsLinesOverTheMaxLineLength() public method

    public function testFindLengthyLinesFindsLinesOverTheMaxLineLength()
    {
        $text = "This text is 33 characters long.";
        $this->assertSame(array(1), CommitMessage::findLengthyLines($text, 30));
        $text2 = 'This line is only 22.';
        $this->assertSame(array(), CommitMessage::findLengthyLines($text2, 30));
        $text3 = <<<___TEXT
This has multiple lines.
Some of which are not really very long at all.
Some are.
___TEXT;
        $this->assertSame(array(2), CommitMessage::findLengthyLines($text3, 30));
    }