6                throw new Exception(
'Directory for CAS Server ticket storage [' . 
$path . 
'] does not exists. ');
 
    8        if (!is_writable(
$path)) 
 
    9                throw new Exception(
'Directory for CAS Server ticket storage [' . 
$path . 
'] is not writable. ');
 
   12        file_put_contents(
$filename, serialize($value));
 
   17        if (!preg_match(
'/^(ST|PT|PGT)-?[a-zA-Z0-9]+$/D', $ticket)) 
throw new Exception(
'Invalid characters in ticket');
 
   20                throw new Exception(
'Directory for CAS Server ticket storage [' . 
$path . 
'] does not exists. ');
 
   25                throw new Exception(
'Could not find ticket');
 
   33        return unserialize($content);
 
   38                if (strpos(
$service, $legalurl) === 0) 
return TRUE;
 
An exception for terminatinating execution or to throw for unit testing.
checkServiceURL($service, array $legal_service_urls)
storeTicket($ticket, $path, $value)
retrieveTicket($ticket, $path, $unlink=true)