MockResponse::make(['payload' => 'https://test.qr'], 200), ]); $config = new AlfaConfig( baseUrl: 'https://test.alfa', certificatePath: __DIR__ . '/../../test_key.pem', // valid path privateKeyPath: __DIR__ . '/../../test_key.pem', // valid path ); $connector = new SbpConnector($config, 'alias'); $connector->withMockClient($mockClient); expect($connector->resolveBaseUrl())->toBe('https://test.alfa'); $response = $connector->send(new GetQrCodeRequest( new QrCodeRequestData(termNo: 'term', qrcType: '01', amount: '100', paymentPurpose: 'purpose') )); expect($response->status())->toBe(200); });