Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TransferTest.php
Go to the documentation of this file.
1 <?php
7 
9 
10 class TransferTest extends \PHPUnit\Framework\TestCase
11 {
12  public function testIO()
13  {
14  $clientConfig = ['config'];
15  $headers = ['Header'];
16  $body = ['data', 'data2'];
17  $auth = ['username', 'password'];
18  $method = 'POST';
19  $uri = 'https://gateway.com';
20  $encode = false;
21 
22  $transfer = new Transfer(
23  $clientConfig,
24  $headers,
25  $body,
26  $auth,
27  $method,
28  $uri,
29  $encode
30  );
31 
32  static::assertSame($clientConfig, $transfer->getClientConfig());
33  static::assertSame($headers, $transfer->getHeaders());
34  static::assertSame($body, $transfer->getBody());
35  static::assertSame($method, $transfer->getMethod());
36  static::assertSame($uri, $transfer->getUri());
37  static::assertSame($encode, $transfer->shouldEncode());
38  }
39 }
$method
Definition: info.phtml:13