/** * Tests the isValid() method * * @return void */ public function testIsValidTrue() { $this->object->setURIs(array('http://example.com')); $isValid = $this->object->isValid(); $this->assertTrue($isValid); }
/** * 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; }