]));
$provider->
delete($bag);
} /**
* @dataProvider writeProvider
*/
public function testWrite(string
$locale, string
$localeId, string
$domain, string
$content, TranslatorBag
$bag) { $this->
getWriteConfig($domain,
$localeId);
$responses =
[ 'init locales' =>
$this->
getInitLocaleResponseMock(),
'upload file' =>
function Dstring
$method, string
$url, array
$options =
[]) use ($domain,
$locale,
$localeId,
$content): ResponseInterface
{ $this->
assertSame('POST',
$method);
$this->
assertSame('https://api.phrase.com/api/v2/projects/1/uploads',
$url);
$testedFileFormat =
$testedFileName =
$testedContent =
$testedLocaleId =
$testedTags =
$testedUpdateTranslations = false;
do { $part =
$options['body'
]();