コード例 #1
0
ファイル: ServiceEndpointTest.php プロジェクト: shupp/openid
 /**
  * Tests the isValid() method
  *
  * @return void
  */
 public function testIsValidTrue()
 {
     $this->object->setURIs(array('http://example.com'));
     $isValid = $this->object->isValid();
     $this->assertTrue($isValid);
 }
コード例 #2
0
ファイル: ServiceEndpoints.php プロジェクト: shupp/openid
 /**
  * Adds a service to the services array
  *
  * @param OpenID_ServiceEndpoint $endpoint The service endpoint object
  *
  * @return void
  */
 public function addService(OpenID_ServiceEndpoint $endpoint)
 {
     if (!$endpoint->isValid()) {
         return;
     }
     $this->_services[] = $endpoint;
 }