| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class CustomClientIdempotencyKeyUnitTest extends TestCase |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Testing getters/setters for the field |
||
| 16 | */ |
||
| 17 | public function testIdempotencyGetSet(): void |
||
| 18 | { |
||
| 19 | // setup |
||
| 20 | $client = new CustomClient('some url', []); |
||
| 21 | |||
| 22 | // test bodyand assertions |
||
| 23 | $client->setIdempotencyKey('i-key'); |
||
| 24 | |||
| 25 | $this->assertEquals('i-key', $client->getIdempotencyKey(), 'Invalid idempotency key'); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Testing setting idempotency key |
||
| 30 | */ |
||
| 31 | public function testSetIdempotencyKey(): void |
||
| 39 | } |
||
| 40 | } |
||
| 41 |