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

Public Member Functions

 setUp ()
 tearDown ()
 test_name ()
 test_can_analyse_responses ()
 test_get_random_guess_score ()
 test_get_possible_responses ()
 test_get_possible_responses_no_star ()

Static Public Attributes

static $includecoverage

Protected Member Functions

 get_possible_response ($ans, $tolerance, $type)

Protected Attributes

 $tolerance = 0.00000001
 $qtype

Detailed Description

Unit tests for question/type/calculated/questiontype.php.

Definition at line 37 of file testquestiontype.php.


Member Function Documentation

get_possible_response ( ans,
tolerance,
type 
) [protected]

Definition at line 68 of file testquestiontype.php.

Here is the caller graph for this function:

setUp ( )

Definition at line 46 of file testquestiontype.php.

tearDown ( )

Definition at line 50 of file testquestiontype.php.

Definition at line 58 of file testquestiontype.php.

Here is the call graph for this function:

Definition at line 76 of file testquestiontype.php.

Here is the call graph for this function:

Definition at line 91 of file testquestiontype.php.

Here is the call graph for this function:

Definition at line 62 of file testquestiontype.php.

Here is the call graph for this function:

test_name ( )

Definition at line 54 of file testquestiontype.php.

Here is the call graph for this function:


Field Documentation

$includecoverage [static]
Initial value:
 array(
        'question/type/questiontypebase.php',
        'question/type/calculated/questiontype.php'
    )

Definition at line 38 of file testquestiontype.php.

$qtype [protected]

Definition at line 44 of file testquestiontype.php.

$tolerance = 0.00000001 [protected]

Definition at line 43 of file testquestiontype.php.


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