Merge branch '42170-26' of git://github.com/samhemelryk/moodle

This commit is contained in:
Marina Glancy 2013-10-23 11:43:23 +11:00
commit c5df0a63bc

View File

@ -105,6 +105,15 @@ class tool_behat_renderer extends plugin_renderer_base {
$stepsdefinitions
);
// Replace simple OR options.
$regex = '#\(\?P<[^>]+>([^\)|]+\|[^\)]+)\)#';
$stepsdefinitions = preg_replace_callback($regex,
function($matches){
return html_writer::select(explode('|', $matches[1]), uniqid());
},
$stepsdefinitions
);
}
// Steps definitions.