Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

PHPUnit autoloader for Moodle.

Copyright: 2013 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 203 lines (8 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

phpunit_autoloader:: (3 methods):
  load()
  guess_class_from_path()
  reload()


Class: phpunit_autoloader  - X-Ref

Class phpunit_autoloader.

Please notice that phpunit testcases obey frankenstyle naming rules,
that is full component prefix + _testcase postfix. The files are expected
in tests directory inside each component. There are some extra tests
directories which require both classname and file path.

Examples:

vendor/bin/phpunit core_component_testcase
vendor/bin/phpunit lib/tests/component_test.php
vendor/bin/phpunit core_component_testcase lib/tests/component_test.php

load(string $suiteClassName, string $suiteClassFile = '')   X-Ref
No description

guess_class_from_path($file)   X-Ref
No description

reload(ReflectionClass $aClass)   X-Ref
No description