Composer > do not require symfony/http-foundation package

Miscellaneous > remove getCurlResponseWithHeaders() method
This commit is contained in:
Meritoo
2018-06-15 22:54:00 +02:00
parent e9da0cf351
commit 43945a8721
3 changed files with 1 additions and 182 deletions

View File

@@ -770,21 +770,6 @@ class MiscellaneousTest extends BaseTestCase
self::assertNotEmpty(Miscellaneous::getProjectRootPath());
}
/**
* @param int $headerSize Length of HTTP headers in content
* @dataProvider provideHeaderSizeForEmptyCurlResponse
*/
public function testGetCurlResponseWithHeadersUsingEmptyResponse($headerSize)
{
$expected = [
'headers' => [],
'cookies' => [],
'content' => '',
];
self::assertEquals($expected, Miscellaneous::getCurlResponseWithHeaders('', $headerSize));
}
/**
* Provides string to convert characters to latin characters and not lower cased and not human-readable
*
@@ -1195,30 +1180,6 @@ class MiscellaneousTest extends BaseTestCase
];
}
/**
* Provides length/size of HTTP headers for an empty response
*
* @return Generator
*/
public function provideHeaderSizeForEmptyCurlResponse()
{
yield[
-10,
];
yield[
-1,
];
yield[
0,
];
yield[
10,
];
}
/**
* {@inheritdoc}
*/