/** * Testing the account options separately since they are only in HP Helion * Public Cloud and may be skipped. * * @depends testAuthenticateAsAccount */ function testBootstrapAsAccount() { $reset = Bootstrap::$config; // Test authenticating as an account. $settings = array('account' => self::conf('hpcloud.identity.account'), 'secret' => self::conf('hpcloud.identity.secret'), 'endpoint' => self::conf('hpcloud.identity.url'), 'tenantid' => self::conf('hpcloud.identity.tenantId')); Bootstrap::setConfiguration($settings); $is = Bootstrap::identity(TRUE); $this->assertInstanceOf('\\HPCloud\\Services\\IdentityServices', $is); Bootstrap::$config = $reset; // Test with tenant name $settings = array('account' => self::conf('hpcloud.identity.account'), 'secret' => self::conf('hpcloud.identity.secret'), 'endpoint' => self::conf('hpcloud.identity.url'), 'tenantname' => self::conf('hpcloud.identity.tenantName')); Bootstrap::setConfiguration($settings); $is = Bootstrap::identity(TRUE); $this->assertInstanceOf('\\HPCloud\\Services\\IdentityServices', $is); }