mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Composer > do not require symfony/http-foundation package
Miscellaneous > remove getCurlResponseWithHeaders() method
This commit is contained in:
@@ -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}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user