| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class EndpointTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testCreateAndSetEndpoint() |
||
| 11 | { |
||
| 12 | $endpoint = new Endpoint(Endpoint::SANDBOX); |
||
| 13 | |||
| 14 | $this->assertEquals($endpoint->getUrl(), Endpoint::SANDBOX); |
||
| 15 | |||
| 16 | $endpoint->setUrl(Endpoint::PRODUCTION); |
||
| 17 | |||
| 18 | $this->assertEquals($endpoint->getUrl(), Endpoint::PRODUCTION); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function testGetPaymentEndpointUrl() |
||
| 22 | { |
||
| 23 | $endpoint = new Endpoint(Endpoint::SANDBOX); |
||
| 24 | |||
| 25 | $this->assertEquals($endpoint->payment(), Endpoint::SANDBOX.Endpoint::PAYMENT); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function testGetConsultEndpointUrl() |
||
| 33 | } |
||
| 34 | |||
| 35 | public function testGetCancelEndpointUrl() |
||
| 36 | { |
||
| 37 | $endpoint = new Endpoint(Endpoint::SANDBOX); |
||
| 38 | |||
| 39 | $this->assertEquals($endpoint->cancel(), Endpoint::SANDBOX.Endpoint::CANCEL); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function testGetCaptureEndpointUrl() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |