-
Notifications
You must be signed in to change notification settings - Fork 2
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
odan
authored and
odan
committed
Nov 17, 2021
1 parent
8157707
commit ebb676b
Showing
18 changed files
with
359 additions
and
37 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
tests/Response/Client/CheckSwissPassValidityNotOkTestResponse.php
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\Client; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class CheckSwissPassValidityNotOkTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents( | ||
__DIR__ . '/../../Resources/Response/Client/CheckSwissPassValidityNotOkResponse.xml' | ||
); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
tests/Response/Client/CheckSwissPassValidityTestResponse.php
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\Client; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class CheckSwissPassValidityTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/Client/CheckSwissPassValidityResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\Client; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class ConfirmReceiptTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/Client/ConfirmReceiptResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\Client; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class CreateOffersTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/Client/CreateOffersResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\Client; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class CreateReceiptsTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/Client/CreateReceiptsResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\Client; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class CreateServiceTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/Client/CreateServiceResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\Client; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class LoginTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/Client/LoginResponse.json'); | ||
|
||
parent::__construct(200, [], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\Client; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class PurchaseServiceTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/Client/PurchaseServiceResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\Client; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class SearchPartnerTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/Client/SearchPartnerResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\SAV; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class CreateSavOffersTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/SAV/CreateSavOffersResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\SAV; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class SavConfirmReceiptTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/SAV/ConfirmReceiptsResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\SAV; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class SavCreateReceiptsTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/SAV/CreateReceiptsResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\SAV; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class SavCreateServiceTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/SAV/CreateServiceResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\SAV; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class SavPurchaseServiceTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/SAV/PurchaseServiceResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OrcaServices\NovaApi\Test\Response\SAV; | ||
|
||
use GuzzleHttp\Psr7\Response; | ||
|
||
/** | ||
* Response. | ||
*/ | ||
final class SavSearchServicesTestResponse extends Response | ||
{ | ||
/** | ||
* The constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$body = (string)file_get_contents(__DIR__ . '/../../Resources/Response/SAV/SearchServicesResponse.xml'); | ||
|
||
parent::__construct(200, ['Content-Type' => 'text/xml'], $body); | ||
} | ||
} |
Oops, something went wrong.