Skip to content

Commit

Permalink
Merge branch '6.2' into 6.3
Browse files Browse the repository at this point in the history
* 6.2:
  [Tests] Remove occurrences of `withConsecutive()`
  Fix support binary values in parameters.
  [Dotenv] Improve Dotenv::usePutenv phpdoc
  • Loading branch information
nicolas-grekas committed Mar 10, 2023
2 parents f35ca78 + f7fbe20 commit f3afec3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tests/LokaliseProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,11 @@ public function testReadForManyLocalesAndManyDomains(array $locales, array $doma
$loader = $this->getLoader();
$loader->expects($this->exactly(\count($consecutiveLoadArguments)))
->method('load')
->withConsecutive(...$consecutiveLoadArguments)
->willReturnOnConsecutiveCalls(...$consecutiveLoadReturns);
->willReturnCallback(function (...$args) use (&$consecutiveLoadArguments, &$consecutiveLoadReturns) {
$this->assertSame(array_shift($consecutiveLoadArguments), $args);

return array_shift($consecutiveLoadReturns);
});

$provider = self::createProvider((new MockHttpClient($response))->withOptions([
'base_uri' => 'https://api.lokalise.com/api2/projects/PROJECT_ID/',
Expand Down

0 comments on commit f3afec3

Please sign in to comment.