diff --git a/lib/tests/messageinbound_test.php b/lib/tests/messageinbound_test.php index 52bb2a60133fa..e2fcd977fdf4a 100644 --- a/lib/tests/messageinbound_test.php +++ b/lib/tests/messageinbound_test.php @@ -103,7 +103,7 @@ public function message_inbound_handler_trim_testprovider() { protected function read_test_file(\SplFileInfo $file, $fixturesdir) { // Break on the --[TOKEN]-- tags in the file. - $tokens = preg_split('#(?:^|\n*)----([A-Z-]+)----\n#', file_get_contents($file->getRealPath()), + $tokens = preg_split('#(?:^|\n*)----([A-Z]+)----\n#', file_get_contents($file->getRealPath()), null, PREG_SPLIT_DELIM_CAPTURE); $sections = array( // Key => Required.