MockResponse::make([ [ 'accountNumber' => '40817810306050000000', 'isActive' => true, ] ], 200), ]); $config = new AlfaConfig( baseUrl: 'https://test.com', certificatePath: __DIR__ . '/../../test_key.pem', privateKeyPath: __DIR__ . '/../../test_key.pem' ); $connector = new AlfaBankConnector($config); $connector->withMockClient($mockClient); $response = $connector->send(new GetNominalAccountsRequest()); expect($response->status())->toBe(200) ->and($response->dto()->first()->accountNumber)->toBe('40817810306050000000'); });