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