Class ilWhiteListUrlValidatorTest.
More...
◆ domainProvider()
ilWhiteListUrlValidatorTest::domainProvider |
( |
| ) |
|
- Returns
- array
Definition at line 14 of file ilWhiteListUrlValidatorTest.php.
18 [
'ilias.de', [],
false],
19 [
'https://ilias.de', [],
false],
20 [
'ilias.de', [
'ilias.de'],
false],
21 [
'https://ilias.de', [
'ilias.de'],
true],
22 [
'https://www.ilias.de', [
'ilias.de'],
true],
23 [
'https://server01.www.ilias.de', [
'ilias.de'],
true],
24 [
'https://server01.www.ilias.de', [
'.ilias.de'],
true],
25 [
'https://server01.www.ilias.de', [
'www.ilias.de'],
true],
26 [
'https://server01.www.ilias.de', [
'.www.ilias.de'],
true],
27 [
'https://server01.www.ilias.de', [
'server01.www.ilias.de'],
true],
28 [
'https://server01.www.ilias.de', [
'.server01.www.ilias.de'],
false],
◆ testValidator()
ilWhiteListUrlValidatorTest::testValidator |
( |
string |
$domain, |
|
|
array |
$whitelist, |
|
|
bool |
$result |
|
) |
| |
domainProvider
- Parameters
-
string | $domain | |
array | $whitelist | |
bool | $result | |
Definition at line 38 of file ilWhiteListUrlValidatorTest.php.
40 require_once
'Services/AuthApache/classes/class.ilWhiteListUrlValidator.php';
if(!array_key_exists('domain', $_REQUEST)) $domain
Class ilWhiteListUrlValidator.
The documentation for this class was generated from the following file: