|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| setUp () | |
| tearDown () | |
Protected Member Functions | |
| clear_html2text_dependencies ($qa) | |
| compare_qas ($expectedqa, $qa) | |
Protected Attributes | |
| $updater | |
| $loader | |
Base class for tests that thest the upgrade of one particular attempt and one question.
Definition at line 95 of file helper.php.
| 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.

| compare_qas | ( | $ | expectedqa, |
| $ | qa | ||
| ) | [protected] |
Compare two qas, ignoring inessential differences.
| object | $expectedqa | the expected qa. |
| object | $qa | the actual qa. |
Definition at line 132 of file helper.php.

| setUp | ( | ) |
Definition at line 99 of file helper.php.
| tearDown | ( | ) |
Definition at line 105 of file helper.php.
$loader [protected] |
Definition at line 97 of file helper.php.
$updater [protected] |
Definition at line 96 of file helper.php.