MDL-32149 PHPUnit test support - part 2
authorPetr Skoda <commits@skodak.org>
Sat, 31 Mar 2012 21:51:02 +0000 (23:51 +0200)
committerPetr Skoda <commits@skodak.org>
Tue, 3 Apr 2012 20:30:53 +0000 (22:30 +0200)
commita3d5830a0a40611934927998f9b8596f033e55fe
treeb6641bcb4be2f752723547ea501690a75690bf97
parentcad96a8a365d7d8a86041160d76d32c30fe37f0e
MDL-32149 PHPUnit test support - part 2

Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
44 files changed:
admin/tool/phpunit/cli/util.php
config-dist.php
lib/accesslib.php
lib/ajax/tests/ajaxlib_test.php [new file with mode: 0644]
lib/ddl/tests/ddl_test.php [new file with mode: 0644]
lib/ddl/tests/fixtures/invalid.xml [new file with mode: 0644]
lib/ddl/tests/fixtures/xmldb_table.xml [new file with mode: 0644]
lib/dml/mysqli_native_moodle_database.php
lib/dml/tests/dml_test.php [new file with mode: 0644]
lib/dml/tests/fixtures/clob.txt [new file with mode: 0644]
lib/dml/tests/fixtures/randombinary [new file with mode: 0644]
lib/form/tests/duration_test.php [new file with mode: 0644]
lib/mathslib.php
lib/moodlelib.php
lib/phpunit/bootstrap.php
lib/phpunit/generatorlib.php [new file with mode: 0644]
lib/phpunit/lib.php
lib/phpunit/readme.md
lib/pluginlib.php
lib/setup.php
lib/setuplib.php
lib/simpletest/testexternallib.php
lib/tests/accesslib_test.php [new file with mode: 0644]
lib/tests/blocklib_test.php [new file with mode: 0644]
lib/tests/code_test.php [new file with mode: 0644]
lib/tests/componentlib_test.php [new file with mode: 0644]
lib/tests/cssslib_test.php [new file with mode: 0644]
lib/tests/eventslib_test.php [new file with mode: 0644]
lib/tests/externallib_test.php [new file with mode: 0644]
lib/tests/filelib_test.php [new file with mode: 0644]
lib/tests/filter_test.php [new file with mode: 0644]
lib/tests/fixtures/events.php [new file with mode: 0644]
lib/tests/formslib_test.php [new file with mode: 0644]
lib/tests/html2text_test.php [new file with mode: 0644]
lib/tests/htmlwriter_test.php [new file with mode: 0644]
lib/tests/mathslib_test.php [new file with mode: 0644]
lib/tests/moodlelib_test.php [new file with mode: 0644]
lib/tests/outputcomponents_test.php [new file with mode: 0644]
lib/tests/outputlib_test.php [new file with mode: 0644]
lib/tests/questionlib_test.php [new file with mode: 0644]
lib/tests/rsslib_test.php [new file with mode: 0644]
lib/tests/weblib_test.php [new file with mode: 0644]
lib/weblib.php
phpunit.xml.dist