示例#1
0
 /**
  * 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
 /**
  * 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;
 }