From 3aa9d1b415c6ba27bddbe676185fb8d881349521 Mon Sep 17 00:00:00 2001 From: Anna Filina Date: Sat, 22 Feb 2020 09:13:13 -0500 Subject: [PATCH] Clean up the test file. --- .../Component/BrowserKit/Tests/HttpBrowserTest.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php b/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php index 807060ce88c55..326d1a67c62db 100644 --- a/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php +++ b/src/Symfony/Component/BrowserKit/Tests/HttpBrowserTest.php @@ -26,18 +26,20 @@ public function getBrowser(array $server = [], History $history = null, CookieJa /** * @dataProvider validContentTypes + * @param array $requestArguments + * @param array $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() @@ -61,7 +63,7 @@ public function validContentTypes() ]; } - public function testMultiPartRequest() + public function testMultiPartRequestWithSingleFile(): void { $client = $this->createMock(HttpClientInterface::class); $client