You are here

protected function ApiTestAbstract::prepareHttpClientMock in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 api-sdk-php/tests/unit/ApiTestAbstract.php \Smartling\Tests\Unit\ApiTestAbstract::prepareHttpClientMock()
  2. 8.2 vendor/smartling/api-sdk-php/tests/unit/ApiTestAbstract.php \Smartling\Tests\Unit\ApiTestAbstract::prepareHttpClientMock()
  3. 8.3 vendor/smartling/api-sdk-php/tests/unit/ApiTestAbstract.php \Smartling\Tests\Unit\ApiTestAbstract::prepareHttpClientMock()
3 calls to ApiTestAbstract::prepareHttpClientMock()
ApiTestAbstract::setUp in vendor/smartling/api-sdk-php/tests/unit/ApiTestAbstract.php
Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.
FileApiTest::constructorDataProvider in vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php
Data provider for testConstructor method.
FileApiTest::setUp in vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php
Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.

File

vendor/smartling/api-sdk-php/tests/unit/ApiTestAbstract.php, line 187

Class

ApiTestAbstract
Class ApiTestAbstract @package Smartling\Tests

Namespace

Smartling\Tests\Unit

Code

protected function prepareHttpClientMock() {
  $this->client = $this
    ->getMockBuilder('GuzzleHttp\\Client')
    ->setMethods(array_merge(self::$clientInterfaceMethods, self::$hasEmitterInterfaceMethods))
    ->disableOriginalConstructor()
    ->getMock();
}