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

Public Member Functions

 __construct ($answers)
 get_answers ()
 compare_response_with_answer (array $response, question_answer $answer)

Protected Attributes

 $answers = array()

Detailed Description

Unit tests for the question definition base classes.

Definition at line 38 of file testquestionbase.php.


Constructor & Destructor Documentation

__construct ( answers)

Definition at line 41 of file testquestionbase.php.


Member Function Documentation

compare_response_with_answer ( array response,
question_answer answer 
)
Parameters:
array$responsethe response.
question_answer$answeran answer.
Returns:
bool whether the response matches the answer.

Implements question_response_answer_comparer.

Definition at line 49 of file testquestionbase.php.

Returns:
array of question_answers.

Implements question_response_answer_comparer.

Definition at line 45 of file testquestionbase.php.


Field Documentation

$answers = array() [protected]

Definition at line 39 of file testquestionbase.php.


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