aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2017-08-09 21:46:47 +0200
committerfilip <filip.komar@gmail.com>2017-08-09 21:46:47 +0200
commit36da8e194f4afc8a61617672715d48209f5772cb (patch)
tree9196e80b336a0c4b972109df394f549219f2687f /test
parentbe6092cbfcfd0fb41cd6b98de04bda8ba0756bcf (diff)
downloadwww-36da8e194f4afc8a61617672715d48209f5772cb.tar
www-36da8e194f4afc8a61617672715d48209f5772cb.tar.gz
www-36da8e194f4afc8a61617672715d48209f5772cb.tar.bz2
www-36da8e194f4afc8a61617672715d48209f5772cb.tar.xz
www-36da8e194f4afc8a61617672715d48209f5772cb.zip
testing server side fs
Diffstat (limited to 'test')
-rw-r--r--test/lang.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/lang.php b/test/lang.php
index 077f8ad92..831376083 100644
--- a/test/lang.php
+++ b/test/lang.php
@@ -7,3 +7,28 @@ include_once '../langs.inc.php';
echo 'Accept-Language: ', $_SERVER['HTTP_ACCEPT_LANGUAGE'], "\n\n";
echo "Relocate `community` with `en` as a default: ", relocate($langs, 'community', 'en', null, false), "\n";
+
+echo "\nTests:\n";
+$test_dir = '../sv/';
+$lstat = '';
+
+if (file_exists($test_dir)) {
+ echo "The file $test_dir exists\n";
+ $lstat = lstat($test_dir);
+} else {
+ echo "The file $test_dir does not exist\n";
+}
+
+if (is_dir($test_dir)) {
+ echo "The $test_dir is a dir\n";
+} else {
+ echo "The $test_dir is not a dir.\n";
+}
+
+if (is_readable($test_dir)) {
+ echo "The file $test_dir is readable\n";
+} else {
+ echo "The file $test_dir is not readable\n";
+}
+
+var_dump($lstat);