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

Public Member Functions

 setUp ()
 tearDown ()

Protected Member Functions

 clear_html2text_dependencies ($qa)
 compare_qas ($expectedqa, $qa)

Protected Attributes

 $updater
 $loader

Detailed Description

Base class for tests that thest the upgrade of one particular attempt and one question.

Definition at line 95 of file helper.php.


Member Function Documentation

clear_html2text_dependencies ( qa) [protected]

Clear text, bringing independence of html2text results

Some tests performing text comparisons of converted text are too much dependent of the behavior of the html2text library. This function is aimed to reduce such dependencies that should not affect the results of these question attempt upgrade tests.

Definition at line 117 of file helper.php.

Here is the caller graph for this function:

compare_qas ( expectedqa,
qa 
) [protected]

Compare two qas, ignoring inessential differences.

Parameters:
object$expectedqathe expected qa.
object$qathe actual qa.

Definition at line 132 of file helper.php.

Here is the call graph for this function:

setUp ( )

Definition at line 99 of file helper.php.

tearDown ( )

Definition at line 105 of file helper.php.


Field Documentation

$loader [protected]

Definition at line 97 of file helper.php.

$updater [protected]

Definition at line 96 of file helper.php.


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