diff --git a/lib/tests/behat/behat_hooks.php b/lib/tests/behat/behat_hooks.php index 00485d15396..20bc5802fc2 100644 --- a/lib/tests/behat/behat_hooks.php +++ b/lib/tests/behat/behat_hooks.php @@ -383,9 +383,9 @@ class behat_hooks extends behat_base { $filename = $event->getStep()->getParent()->getTitle() . '_' . $event->getStep()->getText(); $filename = preg_replace('/([^a-zA-Z0-9\_]+)/', '-', $filename); - // File name limited to 256 characters. Leaving 4 chars for the file + // File name limited to 255 characters. Leaving 4 chars for the file // extension as we allow .png for images and .html for DOM contents. - $filename = substr($filename, 0, 251) . '.' . $filetype; + $filename = substr($filename, 0, 250) . '.' . $filetype; return array($dir, $filename); }