getProxies() public method

This method will only return a non-empty array if we have received and validated a Proxy Ticket.
public getProxies ( ) : array
return array
コード例 #1
0
 /**
  * Test that our list of proxies is not availible on ticket failure.
  *
  * @return void
  */
 public function testInvalidTicketProxyList()
 {
     $this->object->setTicket('ST-1856339-aA5Yuvrxzpv8Tau1cYQ7');
     ob_start();
     try {
         $result = $this->object->validateCAS20($url, $text_response, $tree_response);
     } catch (CAS_AuthenticationException $e) {
     }
     ob_end_clean();
     $this->assertEquals(array(), $this->object->getProxies(), "The list of proxies in front of the client.");
 }
コード例 #2
0
ファイル: CAS.php プロジェクト: DCUnit711/Demeter
 /**
  * Answer an array of proxies that are sitting in front of this application.
  * This method will only return a non-empty array if we have received and
  * validated a Proxy Ticket.
  *
  * @return array
  * @access public
  * @since 6/25/09
  */
 public static function getProxies()
 {
     phpCAS::_validateProxyExists();
     return self::$_PHPCAS_CLIENT->getProxies();
 }