(bool $useCache = false, bool $useHashLookup = true)
| 72 | } |
| 73 | |
| 74 | private function getVaas(bool $useCache = false, bool $useHashLookup = true): Vaas |
| 75 | { |
| 76 | $options = new VaasOptions( |
| 77 | useHashLookup: $useHashLookup, |
| 78 | useCache: $useCache, |
| 79 | vaasUrl: $_ENV["VAAS_URL"] |
| 80 | ); |
| 81 | |
| 82 | $authenticator = new ClientCredentialsGrantAuthenticator( |
| 83 | $_ENV["CLIENT_ID"], |
| 84 | $_ENV["CLIENT_SECRET"], |
| 85 | $_ENV["TOKEN_URL"] |
| 86 | ); |
| 87 | |
| 88 | return Vaas::builder() |
| 89 | ->withAuthenticator($authenticator) |
| 90 | ->withOptions($options) |
| 91 | ->withLogger($this->logger) |
| 92 | ->build(); |
| 93 | } |
| 94 | |
| 95 | public function testForSha256_WithMaliciousSha256_GetsMaliciousResponse(): void |
| 96 | { |
no test coverage detected