MockResponse::make(['dn' => 'CN=Test'], 200), ]); $config = new AlfaConfig( baseUrl: 'https://test.com', certificatePath: __DIR__ . '/../../test_key.pem', privateKeyPath: __DIR__ . '/../../test_key.pem' ); $signer = new OpenSslCmsSigner(__DIR__ . '/../../test_key.pem', __DIR__ . '/../../test_key.pem'); $connector = new AlfaBankConnector($config, $signer); $connector->withMockClient($mockClient); $response = $connector->send(new GetDistinguishedNameRequest()); expect($response->json('dn'))->toBe('CN=Test'); });