Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 75 lines (3 kb)
Included or required: 6 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class

behat_deprecated_base:: (1 method):
  deprecated_message()


Class: behat_deprecated_base  - X-Ref

Base class for steps definitions classes that contain deprecated steps.

To be extended by the deprecated steps definitions of the different Moodle components and add-ons.
For example, deprecated core steps can be found in lib/tests/behat/behat_deprecated.php ,
deprecated steps for mod_forum would be in mod/forum/tests/behat/behat_mod_forum_deprecated.php etc.

deprecated_message($alternatives, bool $throwexception = false)   X-Ref
Throws an exception if $CFG->behat_usedeprecated is not allowed.

param: string|array $alternatives Alternative/s to the requested step
param: bool $throwexception If set to true we always throw exception, irrespective of behat_usedeprecated setting.
return: void