public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$application = \Stormpath\Resource\Application::instantiate(array('name' => 'Main App for the tests' . md5(time()), 'description' => 'Description of Main App', 'status' => 'enabled'));
     parent::createResource(\Stormpath\Resource\Application::PATH, self::$application, array('createDirectory' => true));
     self::$account = \Stormpath\Resource\Account::instantiate(array('givenName' => 'PHP', 'middleName' => 'BasicRequestAuthenticator', 'surname' => 'Test', 'username' => md5(time() . microtime() . uniqid()) . 'username', 'email' => md5(time() . microtime() . uniqid()) . '@unknown123.kot', 'password' => 'superP4ss'));
     self::$application->createAccount(self::$account);
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$application = \Stormpath\Resource\Application::instantiate(array('name' => makeUniqueName('Application ApiRequestAuthenticatorTest'), 'description' => 'Application for ApiRequestAuthenticatorTest', 'status' => 'enabled'));
     parent::createResource(\Stormpath\Resource\Application::PATH, self::$application, array('createDirectory' => true));
     self::$account = \Stormpath\Resource\Account::instantiate(array('givenName' => 'PHP', 'middleName' => 'ApiRequestAuthenticatorTest', 'surname' => 'Test', 'username' => makeUniqueName('ApiRequestAuthenticatorTest'), 'email' => makeUniqueName('ApiRequestAuthenticatorTest') . '@unknown123.kot', 'password' => 'superP4ss'));
     self::$application->createAccount(self::$account);
     self::$apiKey = self::$account->createApiKey();
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     Client::tearDown();
     Client::$cacheManager = 'Null';
     self::createOrganization();
     $directory = \Stormpath\Resource\Directory::instantiate(['name' => makeUniqueName('OrgTest'), 'description' => 'Description of Main Directory', 'status' => 'enabled']);
     self::$directory = self::createResource(\Stormpath\Resource\Directory::PATH, $directory);
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$directory = \Stormpath\Resource\Directory::create(array('name' => 'Another random directory' . md5(time() . microtime() . uniqid())));
     self::$acp = self::$directory->accountCreationPolicy;
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$directory = \Stormpath\Resource\Directory::create(array('name' => makeUniqueName('AccountCreationPolicyTest')));
     self::$acp = self::$directory->accountCreationPolicy;
 }