/**
  * @expectedException ObjectStorage_Exception_Http_Unauthorized
  */
 public function testAuthenticationWithBadCredentials()
 {
     $options = array('adapter' => ObjectStorage_Http_Client::SOCKET, 'timeout' => 10);
     $objectStorage = new ObjectStorage(self::$host, self::$username, 'bad-password-' . time(), $options);
     // Make sure we are not using cached auth data
     ObjectStorage::setTokenStore(new AuthenticationTest_TokenStore());
     $authData = $objectStorage->getAuthenticationData();
 }
 public static function setUpBeforeClass()
 {
     self::$tokenStore = ObjectStorage_TokenStore::factory('file', array('ttl' => 3600, 'path' => '/tmp'));
     $options = array('adapter' => ObjectStorage_Http_Client::SOCKET, 'timeout' => 10);
     ObjectStorage::setTokenStore(self::$tokenStore);
     $objectStorage01 = new ObjectStorage(self::$host, self::$username, self::$password, $options);
     self::$objectStorage = $objectStorage01;
 }