Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  add missing namespace declaration
  Fix named arguments in data providers
  [FrameworkBundle] Do not access the container when the kernel is shut down
  • Loading branch information
xabbuh committed Sep 20, 2024
2 parents 2af7c5a + fbebfcc commit abca358
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/ScopingHttpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ public function testMatchingUrls(string $regexp, string $url, array $options)
$this->assertSame($options[$regexp]['case'], $requestedOptions['case']);
}

public static function provideMatchingUrls()
public static function provideMatchingUrls(): iterable
{
$defaultOptions = [
'.*/foo-bar' => ['case' => 1],
'.*' => ['case' => 2],
];

yield ['regexp' => '.*/foo-bar', 'url' => 'http://example.com/foo-bar', 'default_options' => $defaultOptions];
yield ['regexp' => '.*', 'url' => 'http://example.com/bar-foo', 'default_options' => $defaultOptions];
yield ['regexp' => '.*', 'url' => 'http://example.com/foobar', 'default_options' => $defaultOptions];
yield ['regexp' => '.*/foo-bar', 'url' => 'http://example.com/foo-bar', 'options' => $defaultOptions];
yield ['regexp' => '.*', 'url' => 'http://example.com/bar-foo', 'options' => $defaultOptions];
yield ['regexp' => '.*', 'url' => 'http://example.com/foobar', 'options' => $defaultOptions];
}

public function testMatchingUrlsAndOptions()
Expand Down

0 comments on commit abca358

Please sign in to comment.