-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77e69f3
commit f46a92b
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ protected function setUp(): void | |
$this->assertNotEmpty($key); | ||
$this->assertNotEmpty($secret); | ||
|
||
$this->domain = self::generateRandomString().'.net'; | ||
$this->domain = self::generateRandomString() . '.net'; | ||
$this->client = new OpenSRS( | ||
$key, | ||
$secret, | ||
|
@@ -139,18 +139,18 @@ public function testTransfer(string $domain): void | |
private static function purchaseContact(string $suffix = ''): array | ||
{ | ||
$contact = new Contact( | ||
'Test'.$suffix, | ||
'Tester'.$suffix, | ||
'+1.8031234567'.$suffix, | ||
'[email protected]'.$suffix, | ||
'123 Main St'.$suffix, | ||
'Suite 100'.$suffix, | ||
''.$suffix, | ||
'San Francisco'.$suffix, | ||
'Test' . $suffix, | ||
'Tester' . $suffix, | ||
'+1.8031234567' . $suffix, | ||
'[email protected]' . $suffix, | ||
'123 Main St' . $suffix, | ||
'Suite 100' . $suffix, | ||
'' . $suffix, | ||
'San Francisco' . $suffix, | ||
'CA', | ||
'US', | ||
'94105', | ||
'Test Inc'.$suffix, | ||
'Test Inc' . $suffix, | ||
); | ||
|
||
return [ | ||
|
@@ -161,16 +161,16 @@ private static function purchaseContact(string $suffix = ''): array | |
]; | ||
} | ||
|
||
private function generateRandomString(int $length = 10): string | ||
{ | ||
$characters = 'abcdefghijklmnopqrstuvwxyz'; | ||
$charactersLength = strlen($characters); | ||
$randomString = ''; | ||
private function generateRandomString(int $length = 10): string | ||
{ | ||
$characters = 'abcdefghijklmnopqrstuvwxyz'; | ||
$charactersLength = strlen($characters); | ||
$randomString = ''; | ||
|
||
for ($i = 0; $i < $length; $i++) { | ||
$randomString .= $characters[random_int(0, $charactersLength - 1)]; | ||
} | ||
for ($i = 0; $i < $length; $i++) { | ||
$randomString .= $characters[random_int(0, $charactersLength - 1)]; | ||
} | ||
|
||
return $randomString; | ||
} | ||
return $randomString; | ||
} | ||
} |