Search moodle.org's
Developer Documentation

See Release Notes

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

Unit tests for parts of /lib/behat/lib.php.

Copyright: 2021 Université Rennes 2 {@link https://www.univ-rennes2.fr}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 96 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

behat_lib_test:: (3 methods):
  setUp()
  test_behat_is_requested_url()
  url_provider()


Class: behat_lib_test  - X-Ref

Unit tests for parts of /lib/behat/lib.php.

setUp()   X-Ref
Setup function

Skip these tests if behat is not configured.

return: void

test_behat_is_requested_url($url, $expectedvalue, $environment)   X-Ref
Tests for behat_is_requested_url() function.

param: string $url           URL used with behat_is_requested_url() function.
param: bool   $expectedvalue Expected value returned by behat_is_requested_url() function.
param: array  $environment   Values to override $_SERVER global variable.

url_provider()   X-Ref
Data provider for test_behat_is_requested_url.

return: array Array of values to test behat_is_requested_url() function.