Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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.