Moodle  2.2.1
http://www.collinsharper.com
workshop_numerrors_strategy_test Class Reference
Inheritance diagram for workshop_numerrors_strategy_test:
Collaboration diagram for workshop_numerrors_strategy_test:

Public Member Functions

 setUp ()
 tearDown ()
 test_calculate_peer_grade_null_grade ()
 test_calculate_peer_grade_no_error ()
 test_calculate_peer_grade_one_error ()
 test_calculate_peer_grade_three_errors_same_weight_a ()
 test_calculate_peer_grade_three_errors_same_weight_b ()
 test_calculate_peer_grade_one_error_weighted ()
 test_calculate_peer_grade_zero_weight ()
 test_calculate_peer_grade_sum_weight ()

Protected Attributes

 $realDB
 $workshop
 $strategy

Detailed Description

Definition at line 55 of file testlib.php.


Member Function Documentation

setUp ( )

Setup testing environment

Definition at line 69 of file testlib.php.

tearDown ( )

Definition at line 82 of file testlib.php.

Definition at line 101 of file testlib.php.

Here is the call graph for this function:

Definition at line 90 of file testlib.php.

Here is the call graph for this function:

Definition at line 118 of file testlib.php.

Here is the call graph for this function:

Definition at line 189 of file testlib.php.

Here is the call graph for this function:

Definition at line 237 of file testlib.php.

Here is the call graph for this function:

Definition at line 141 of file testlib.php.

Here is the call graph for this function:

Definition at line 165 of file testlib.php.

Here is the call graph for this function:

Definition at line 213 of file testlib.php.

Here is the call graph for this function:


Field Documentation

$realDB [protected]

real database

Definition at line 58 of file testlib.php.

$strategy [protected]

instance of the strategy logic class being tested

Definition at line 64 of file testlib.php.

$workshop [protected]

workshop instance emulation

Definition at line 61 of file testlib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations