CAS_Client::setTicket PHP Method

setTicket() public method

This method stores the Service Ticket.
public setTicket ( string $st ) : void
$st string The Service Ticket.
return void
    public function setTicket($st)
    {
        $this->_ticket = $st;
    }

Usage Example

コード例 #1
1
 /**
  * Wrong order of valid regexp
  *
  * @return void
  *
  * @expectedException CAS_AuthenticationException
  * @outputBuffering enabled
  */
 public function testAllowedProxiesRegexpFailureWrongOrder()
 {
     $this->object->setTicket('ST-123456-asdfasdfasgww2323radf3');
     $this->object->getAllowedProxyChains()->allowProxyChain(new CAS_ProxyChain(array('/^https\\:\\/\\/anotherdomain.org\\/mysite\\/test2$/', '/http\\:\\/\\/firstproxy\\.com.*$/')));
     $result = $this->object->validateCAS20($url, $text_response, $tree_response);
     $this->assertFalse($result);
 }
All Usage Examples Of CAS_Client::setTicket
CAS_Client