protected function setUp()
 {
     Phake::initAnnotations($this);
     Phake::when($this->container)->generateId(Phake::anyParameters())->thenReturn(static::UNIQUE_ID);
     $this->wpdb->prefix = "prefix_";
     $this->wpdb->last_error = "";
     Phake::when($this->wpdb)->prepare(Phake::anyParameters())->thenReturn(static::PREPARED_STARTEMENT);
     Phake::when($this->facade)->get_wpdb()->thenReturn($this->wpdb);
     SAML2_Compat_ContainerSingleton::setContainer($this->container);
     $this->service = new LaunchKey_WP_SAML2_Response_Service(self::$key, $this->facade);
     $this->service->load_saml_response(self::$response_data);
 }
 private function get_sso_attribute($key)
 {
     $values = $this->saml_response_service->get_attribute($key);
     return $values ? $values[0] : null;
 }