Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 310] [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

Unit tests for grading evaluation method "best"

Copyright: 2009 David Mudrak <david.mudrak@gmail.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 338 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes


Class: workshopeval_best_evaluation_testcase  - X-Ref

setUp()   X-Ref
Setup testing environment


tearDown()   X-Ref
No description

test_normalize_grades()   X-Ref
No description

test_normalize_grades_max_equals_min()   X-Ref
No description

test_average_assessment_same_weights()   X-Ref
No description

test_average_assessment_different_weights()   X-Ref
No description

test_average_assessment_noweight()   X-Ref
No description

test_weighted_variance()   X-Ref
No description

test_assessments_distance_zero()   X-Ref
No description

test_assessments_distance_equals()   X-Ref
No description

test_assessments_distance_zero_variance()   X-Ref
No description

Class: testable_workshop_best_evaluation  - X-Ref

Test subclass that makes all the protected methods we want to test public.

normalize_grades(array $assessments, array $diminfo)   X-Ref
No description

average_assessment(array $assessments)   X-Ref
No description

weighted_variance(array $assessments)   X-Ref
No description

assessments_distance(stdclass $assessment, stdclass $referential, array $diminfo, stdclass $settings)   X-Ref
No description