Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
GetResourceApiCallDenied
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
 verifyValidResponse
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
2
1<?php
2namespace Apie\IntegrationTests\Requests;
3
4use PHPUnit\Framework\TestCase;
5use Psr\Http\Message\ResponseInterface;
6
7class GetResourceApiCallDenied extends GetResourceApiCall
8{
9    public function verifyValidResponse(ResponseInterface $response): void
10    {
11        if ($this->faked) {
12            TestCase::assertContains($response->getStatusCode(), [200, 403]);
13        } else {
14            TestCase::assertEquals(403, $response->getStatusCode());
15        }
16    }
17}