Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 30... Línea 30...
30
 *
30
 *
31
 * @package    qbehaviour_adaptive
31
 * @package    qbehaviour_adaptive
32
 * @copyright  2009 The Open University
32
 * @copyright  2009 The Open University
33
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 */
34
 */
35
class walkthrough_test extends \qbehaviour_walkthrough_test_base {
35
final class walkthrough_test extends \qbehaviour_walkthrough_test_base {
36
    protected function get_contains_penalty_info_expectation($penalty) {
36
    protected function get_contains_penalty_info_expectation($penalty) {
37
        $penaltyinfo = get_string('gradingdetailspenalty', 'qbehaviour_adaptive',
37
        $penaltyinfo = get_string('gradingdetailspenalty', 'qbehaviour_adaptive',
38
                                  format_float($penalty, $this->displayoptions->markdp));
38
                                  format_float($penalty, $this->displayoptions->markdp));
39
        return new \question_pattern_expectation('/'.preg_quote($penaltyinfo, '/').'/');
39
        return new \question_pattern_expectation('/'.preg_quote($penaltyinfo, '/').'/');
40
    }
40
    }