Skip to content

Commit fbebfcc

Browse files
committed
Fix named arguments in data providers
1 parent 0dc153b commit fbebfcc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/ScopingHttpClientTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ public function testMatchingUrls(string $regexp, string $url, array $options)
4949
$this->assertSame($options[$regexp]['case'], $requestedOptions['case']);
5050
}
5151

52-
public static function provideMatchingUrls()
52+
public static function provideMatchingUrls(): iterable
5353
{
5454
$defaultOptions = [
5555
'.*/foo-bar' => ['case' => 1],
5656
'.*' => ['case' => 2],
5757
];
5858

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

6464
public function testMatchingUrlsAndOptions()

0 commit comments

Comments
 (0)