3 // begin unit test header
4 $WEB_ROOT_FS = realpath(dirname(__FILE__));
5 $BASE_URL = dirname($_SERVER["PHP_SELF"]);
7 global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL;
9 if(file_exists("../libglcas")) {
10 $path = realpath($WEB_ROOT_FS."/../");
11 error_log("added glcas path as $path");
12 set_include_path(get_include_path().PATH_SEPARATOR.$path);
14 require_once("../libglcas/lib.php");
20 if(glcase_fileExists("http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-amd64.gz")) {
21 echo "true - DOES EXIST: http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-amd64.gz";
23 echo "FAIL - SAID DOES NOT EXIST: http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-amd64.gz";
26 if(!glcase_fileExists("http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-aaaaaaaamd64.gz")) {
27 echo "true - DOES NOT EXIST: http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-aaaaaaaamd64.gz";
29 echo "FAIL - SAID DOES EXIST: http://ftp.iinet.net.au/pub/ubuntu/dists/hardy/Contents-aaaaaaaamd64.gz";