MDL-40305 implement moodle specific phpunit testcase classloader

This commit is contained in:
Petr Škoda
2013-06-24 21:29:37 +02:00
parent 0ea1fbbb55
commit d44e0aa323
3 changed files with 157 additions and 0 deletions
+1
View File
@@ -33,6 +33,7 @@ ini_set('log_errors', '1');
require_once(__DIR__.'/bootstraplib.php');
require_once(__DIR__.'/../testing/lib.php');
require_once(__DIR__.'/classes/autoloader.php');
if (isset($_SERVER['REMOTE_ADDR'])) {
phpunit_bootstrap_error(1, 'Unit tests can be executed only from command line!');