Skip to content

Commit

Permalink
Clean up the test file.
Browse files Browse the repository at this point in the history
  • Loading branch information
afilina committed Feb 22, 2020
1 parent 0aedab8 commit 3aa9d1b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php
Expand Up @@ -26,18 +26,20 @@ public function getBrowser(array $server = [], History $history = null, CookieJa

/**
* @dataProvider validContentTypes
* @param array<int, mixed> $requestArguments
* @param array<int, mixed> $expectedArguments
*/
public function testRequestHeaders(array $request, array $exepectedCall)
public function testRequestHeaders(array $requestArguments, array $expectedArguments)
{
$client = $this->createMock(HttpClientInterface::class);
$client
->expects($this->once())
->method('request')
->with(...$exepectedCall)
->with(...$expectedArguments)
->willReturn($this->createMock(ResponseInterface::class));

$browser = new HttpBrowser($client);
$browser->request(...$request);
$browser->request(...$requestArguments);
}

public function validContentTypes()
Expand All @@ -61,7 +63,7 @@ public function validContentTypes()
];
}

public function testMultiPartRequest()
public function testMultiPartRequestWithSingleFile(): void
{
$client = $this->createMock(HttpClientInterface::class);
$client
Expand Down

0 comments on commit 3aa9d1b

Please sign in to comment.