removeAuthenticationMethod() публичный Метод

Disable an authentication method
public removeAuthenticationMethod ( integer $method )
$method integer
 public function testRemoveAuthenticationMethod()
 {
     $this->auth->setAuthenticationMethods(array(TransparentAuthentication::Auth_HTTPBasicAuth_Plaintext, TransparentAuthentication::Auth_HTTPBasicAuth_TOTP));
     // Try removing a non-existing method
     $this->auth->removeAuthenticationMethod(TransparentAuthentication::Auth_QueryString_Plaintext);
     $this->assertEquals(array(TransparentAuthentication::Auth_HTTPBasicAuth_Plaintext, TransparentAuthentication::Auth_HTTPBasicAuth_TOTP), ReflectionHelper::getValue($this->auth, 'authenticationMethods'));
     // Try removing an existing method
     $this->auth->removeAuthenticationMethod(TransparentAuthentication::Auth_HTTPBasicAuth_Plaintext);
     $this->assertEquals(array(1 => TransparentAuthentication::Auth_HTTPBasicAuth_TOTP), ReflectionHelper::getValue($this->auth, 'authenticationMethods'));
 }