mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/11620] Fix quotes in extract_hostname_test
PHPBB3-11620
This commit is contained in:
parent
b8d9d7b79f
commit
71fbe74ede
1 changed files with 7 additions and 7 deletions
|
@ -30,15 +30,15 @@ class phpbb_session_extract_hostname_test extends phpbb_database_test_case
|
||||||
return array (
|
return array (
|
||||||
// [Input] $host, $server_name_config, $cookie_domain_config, [Expected] $output
|
// [Input] $host, $server_name_config, $cookie_domain_config, [Expected] $output
|
||||||
// If host is ip use that ipv4
|
// If host is ip use that ipv4
|
||||||
array("127.0.0.1", "skipped.org", "skipped.org", "127.0.0.1"),
|
array('127.0.0.1', 'skipped.org', 'skipped.org', '127.0.0.1'),
|
||||||
// If no host but server name matches cookie_domain use that
|
// If no host but server name matches cookie_domain use that
|
||||||
array("", "example.org", "example.org", "example.org"),
|
array('', 'example.org', 'example.org', 'example.org'),
|
||||||
// If there is a host uri use that
|
// If there is a host uri use that
|
||||||
array("example.org", False, False, "example.org"),
|
array('example.org', false, false, 'example.org'),
|
||||||
// "best approach" guessing
|
// 'best approach' guessing
|
||||||
array("", "example.org", False, "example.org"),
|
array('', 'example.org', false, 'example.org'),
|
||||||
array("", False, "127.0.0.1", "127.0.0.1"),
|
array('', false, '127.0.0.1', '127.0.0.1'),
|
||||||
array("", False, False, php_uname('n')),
|
array('', false, false, php_uname('n')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue