The test `ReleaseNotesTest:testReleaseNotesFilesExistAndAreNotMalformed` takes 4 seconds on my machine. Most notably it invokes `mb_strlen` and `assertLessThanOrEqual` on each line of some files at the root of the repository. `HISTORY` has 20000 lines and thus that is rather slow.
The test should be refactored to do less invocations of `assertLessThanOrEqual`. For example by keeping track of lines being too long in an array an asserting the array is empty.
```
lang=php, name=tests/phpunit/documentation/ReleaseNotesTest.php
53 private function assertFileLength( $type, $fileName ) {
54 $file = file( $fileName, FILE_IGNORE_NEW_LINES );
60
61 foreach ( $file as $i => $line ) {
62 $num = $i + 1;
63 $this->assertLessThanOrEqual(
64 // FILE_IGNORE_NEW_LINES drops the \n at the EOL, so max length is 80 not 81.
65 80,
66 mb_strlen( $line ),
67 "$type file '$fileName' line $num, is longer than 80 chars:\n\t'$line'"
68 );
69 }
70 }
71 }
```