/**
  * test get amf request header handler filter
  */
 public function testGetAmfRequestHeaderHandlerFilter()
 {
     $credentialsAssoc = new stdClass();
     $userIdField = Amfphp_Core_Amf_Constants::CREDENTIALS_FIELD_USERID;
     $passwordField = Amfphp_Core_Amf_Constants::CREDENTIALS_FIELD_PASSWORD;
     $credentialsAssoc->{$userIdField} = 'admin';
     $credentialsAssoc->{$passwordField} = 'adminPassword';
     $credentialsHeader = new Amfphp_Core_Amf_Header(Amfphp_Core_Amf_Constants::CREDENTIALS_HEADER_NAME, true, $credentialsAssoc);
     $ret = $this->object->filterAmfRequestHeaderHandler(null, $credentialsHeader);
     $this->assertEquals($this->object, $ret);
     $otherHeader = new Amfphp_Core_Amf_Header('bla');
     $ret = $this->object->filterAmfRequestHeaderHandler(null, $otherHeader);
     $this->assertEquals(null, $ret);
 }
 /**
  * sign out function
  */
 public function signOut()
 {
     AmfphpAuthentication::clearSessionInfo();
 }