diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/t/03_lang_redirection.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/t/03_lang_redirection.t b/lib/t/03_lang_redirection.t new file mode 100644 index 000000000..cb799c71b --- /dev/null +++ b/lib/t/03_lang_redirection.t @@ -0,0 +1,13 @@ +<?php + +require realpath(__DIR__ . '/../testmore.php'); +require realpath(__DIR__ . '/../../langs.inc.php'); + +plan('no_plan'); + +diag('Testing langs.inc.php functions.'); + + +is(relocate($langs, null, 'en', 'en'), '/en/'); +is(relocate($langs, null, 'en', 'pt-BR,pt;q=0.8,es;q=0.6,en-US;q=0.4,en;q=0.2'), '/pt-br/'); + |