Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
madeITBelgium authored and StyleCIBot committed Aug 12, 2017
1 parent 4c857de commit f58d528
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 83 deletions.
4 changes: 2 additions & 2 deletions src/Command/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,12 @@ public function modifyDomainRecords($domainname, $automatic = false, $autoLockMo

return true;
}

public function getLastResultCode()
{
return $this->domainbox->getLastResultCode();
}

public function getLastResultMessage()
{
$this->domainbox->getLastResultMessage();
Expand Down
8 changes: 4 additions & 4 deletions src/Domainbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Domainbox
private $sandbox;

private $client;

private $lastResultCode;
private $lastResultMessage;

Expand Down Expand Up @@ -77,7 +77,7 @@ public function call($endPoint, $parameters)

$this->lastResultCode = $output->ResultCode;
$this->lastResultMessage = $output->ResultMsg;

return $result->$resultKey;
}

Expand Down Expand Up @@ -161,12 +161,12 @@ public function contact()
{
return new Command\Contact($this);
}

public function getLastResultCode()
{
return $this->lastResultCode;
}

public function getLastResultMessage()
{
$this->lastResultMessage;
Expand Down
154 changes: 77 additions & 77 deletions tests/DomainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,83 +192,83 @@ public function testUnavailableDomainPlus()
$domainbox = new Domainbox('reseller', 'username', 'password', false);

// Create a mock and queue two responses.
/*
$stream = Psr7\stream_for('{
"NameSuggestions": {
"ResultCode": 500,
"ResultMsg": "Name Suggestions failed. Unable to get name Suggestions"
},
"TypoSuggestions": {
"ResultCode": 500,
"ResultMsg": "Typo Suggestions failed. Unable to get Typo Suggestions"
},
"PrefixSuffixSuggestions": {
"ResultCode": 500,
"ResultMsg": "Suffix/Prefix Suggestions failed. Unable to get Suffix/Prefix Suggestions"
},
"PremiumDomains": {
"ResultCode": 100,
"ResultMsg": "Command Successful",
"Domains": [
{
"DomainName": "madeitmine.com",
"Price": "1495.00",
"FastTransfer": true
},
{
"DomainName": "madeitup.com",
"Price": "6099.00",
"FastTransfer": true
},
{
"DomainName": "madeitmatter.com",
"Price": "1895.00",
"FastTransfer": true
},
{
"DomainName": "madeiteasy.com",
"Price": "3599.00",
"FastTransfer": true
},
{
"DomainName": "madeityet.com",
"Price": "349.00",
"FastTransfer": true
},
{
"DomainName": "madeitfunny.com",
"Price": "250.00",
"FastTransfer": false
},
{
"DomainName": "MadeItHappen.com",
"Price": "2288.00",
"FastTransfer": true
},
{
"DomainName": "madeitright.com",
"Price": "2695.00",
"FastTransfer": false
},
{
"DomainName": "madeitsimple.com",
"Price": "899.00",
"FastTransfer": false
},
{
"DomainName": "madeitdesign.com",
"Price": "877.00",
"FastTransfer": false
}
]
},
"ResultCode": 100,
"ResultMsg": "The following items failed (Name Suggestions, Typo Suggestions, Suffix/Prefix Suggestions)",
"TxID": "9fb8f585-c43e-4d29-8fae-86110cd89adc"
}
}'); //ResultCode changed from 210
*/
/*
$stream = Psr7\stream_for('{
"NameSuggestions": {
"ResultCode": 500,
"ResultMsg": "Name Suggestions failed. Unable to get name Suggestions"
},
"TypoSuggestions": {
"ResultCode": 500,
"ResultMsg": "Typo Suggestions failed. Unable to get Typo Suggestions"
},
"PrefixSuffixSuggestions": {
"ResultCode": 500,
"ResultMsg": "Suffix/Prefix Suggestions failed. Unable to get Suffix/Prefix Suggestions"
},
"PremiumDomains": {
"ResultCode": 100,
"ResultMsg": "Command Successful",
"Domains": [
{
"DomainName": "madeitmine.com",
"Price": "1495.00",
"FastTransfer": true
},
{
"DomainName": "madeitup.com",
"Price": "6099.00",
"FastTransfer": true
},
{
"DomainName": "madeitmatter.com",
"Price": "1895.00",
"FastTransfer": true
},
{
"DomainName": "madeiteasy.com",
"Price": "3599.00",
"FastTransfer": true
},
{
"DomainName": "madeityet.com",
"Price": "349.00",
"FastTransfer": true
},
{
"DomainName": "madeitfunny.com",
"Price": "250.00",
"FastTransfer": false
},
{
"DomainName": "MadeItHappen.com",
"Price": "2288.00",
"FastTransfer": true
},
{
"DomainName": "madeitright.com",
"Price": "2695.00",
"FastTransfer": false
},
{
"DomainName": "madeitsimple.com",
"Price": "899.00",
"FastTransfer": false
},
{
"DomainName": "madeitdesign.com",
"Price": "877.00",
"FastTransfer": false
}
]
},
"ResultCode": 100,
"ResultMsg": "The following items failed (Name Suggestions, Typo Suggestions, Suffix/Prefix Suggestions)",
"TxID": "9fb8f585-c43e-4d29-8fae-86110cd89adc"
}
}'); //ResultCode changed from 210
*/

$soapClientMock = $this->getMockFromWsdl($this->wsdl);

Expand Down

0 comments on commit f58d528

Please sign in to comment.