diff --git a/test/libraries/core/PMA_isAllowedDomain_test.php b/test/libraries/core/PMA_isAllowedDomain_test.php new file mode 100644 index 0000000000..ad5296fb07 --- /dev/null +++ b/test/libraries/core/PMA_isAllowedDomain_test.php @@ -0,0 +1,52 @@ +assertEquals( + $expected, + PMA_isAllowedDomain($url) + ); + } + + /** + * Test data provider + * + * @return array + */ + function provideURLs() + { + return array( + array('https://www.phpmyadmin.net/', true), + array('http://duckduckgo.com\\@github.com', true), + array('https://github.com/', true), + array('https://server.local/', true), + ); + } + +} + +