public function testGetLengthyLinesFindsLinesOverTheMaxLineLength() { $text = <<<___MSG chore(test): But with long line The long line is down here. This line is much longer than the other. And this one is short. But here we go again with another long line. ___MSG; $msg = new CommitMessage(); $msg->setMaxLineLength(40); $msg->setMsg($text); $this->assertSame(array(3, 5), $msg->getLengthyLines()); }