public function FileApiTest::sendRequestValidProvider in TMGMT Translator Smartling 8.2
Same name in this branch
- 8.2 api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::sendRequestValidProvider()
- 8.2 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::sendRequestValidProvider()
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::sendRequestValidProvider()
- 8.3 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::sendRequestValidProvider()
Data provider callback for testSendRequest method.
Return value
array
File
- vendor/
smartling/ api-sdk-php/ tests/ unit/ FileApiTest.php, line 620
Class
- FileApiTest
- Test class for Smartling\File\FileApi.
Namespace
Smartling\Tests\UnitCode
public function sendRequestValidProvider() {
return [
[
'uri',
[],
'get',
[
'headers' => [
'Accept' => 'application/json',
],
'exceptions' => false,
'query' => [],
],
'query',
],
[
'uri',
[
'key' => 'value',
'boolean_false' => false,
'boolean_true' => true,
'file' => './tests/resources/test.xml',
],
'post',
[
'headers' => [
'Accept' => 'application/json',
],
'exceptions' => false,
'multipart' => [
[
'name' => 'key',
'contents' => 'value',
],
[
'name' => 'boolean_false',
'contents' => '0',
],
[
'name' => 'boolean_true',
'contents' => '1',
],
[
'name' => 'file',
'contents' => $this->streamPlaceholder,
],
],
],
'multipart',
],
];
}