MDL-47675 phpunit: Update unit tests to pass on MSSQL
authorAdrian Greeve <adrian@moodle.com>
Mon, 20 Oct 2014 06:21:53 +0000 (14:21 +0800)
committerAdrian Greeve <adrian@moodle.com>
Mon, 20 Oct 2014 06:26:11 +0000 (14:26 +0800)
commitc42d18183a633625745d089523971de8e6aaadaa
tree1b2734ec29beecb5ad703737b194666864074066
parentb49de5d93009a421731af5a80e1dec6eb46c9ca9
MDL-47675 phpunit: Update unit tests to pass on MSSQL

Unit tests were failing on MSSQL. gc_collect_cycles() was
removed from the phpunit utils.php file to save time in running
the tests, but MSSQL doesn't clean up open files as well as
other databases.

This patch includes the garbage collection for the unit tests
that require it.
admin/tool/uploadcourse/tests/course_test.php
admin/tool/uploadcourse/tests/processor_test.php
backup/moodle2/tests/moodle2_test.php
course/tests/courselib_test.php
course/tests/externallib_test.php
lib/tests/questionlib_test.php
mod/assign/feedback/editpdf/tests/editpdf_test.php