--- /dev/null
+<?php
+
+// begin unit test header
+$WEB_ROOT_FS = realpath(dirname(__FILE__));
+$BASE_URL = dirname($_SERVER["PHP_SELF"]);
+
+global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL;
+
+if(file_exists("../libglcas")) {
+ $path = realpath($WEB_ROOT_FS."/../");
+ error_log("added glcas path as $path");
+ set_include_path(get_include_path().PATH_SEPARATOR.$path);
+}
+require_once("../libglcas/lib.php");
+
+
+glcas_pluginLoader();
+
+
+if(glcase_fileExists("http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-amd64.gz")) {
+ echo "true - DOES EXIST: http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-amd64.gz";
+} else {
+ echo "FAIL - SAID DOES NOT EXIST: http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-amd64.gz";
+}
+
+if(!glcase_fileExists("http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-aaaaaaaamd64.gz")) {
+ echo "true - DOES NOT EXIST: http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-aaaaaaaamd64.gz";
+} else {
+ echo "FAIL - SAID DOES EXIST: http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-aaaaaaaamd64.gz";
+}
+
+?>
\ No newline at end of file