Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/continuous integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
- "8.2"
- "8.3"
- "8.4"
- "8.5"
dependencies:
- "lowest"
- "highest"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": "^8,<8.2|>=8.2.9,<8.5",
"php": "^8,<8.2|>=8.2.9,<8.6",
"ext-curl": "*",
"beberlei/assert": "^3.2.5",
"symfony/yaml": "^3|^4|^5|^6|^7",
Expand Down
2 changes: 1 addition & 1 deletion src/VCR/Util/SoapClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(?string $wsdl, array $options = [])
*
* Requests will be intercepted if the library hook is enabled.
*/
public function __doRequest(string $request, string $location, string $action, int $version, bool $one_way = false): ?string
public function __doRequest(string $request, string $location, string $action, int $version, bool $one_way = false, ?string $uriParserClass = null): ?string
{
$this->request = $request;

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/CodeTransform/AbstractCodeTransformTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function getFilter(array $methods = [])
);

$filter = $this->getMockBuilder(AbstractCodeTransform::class)
->setMethods($defaults)
->onlyMethods($defaults)
->getMockForAbstractClass();

if (\in_array('transformCode', $methods)) {
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Util/SoapClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected function getLibraryHookMock(bool $enabled)
{
$hookMock = $this->getMockBuilder(SoapHook::class)
->disableOriginalConstructor()
->setMethods(['isEnabled', 'doRequest'])
->onlyMethods(['isEnabled', 'doRequest'])
->getMock();

$hookMock
Expand Down Expand Up @@ -85,7 +85,7 @@ public function testDoRequestHandlesHookDisabled(): void
{
$client = $this->getMockBuilder(SoapClient::class)
->disableOriginalConstructor()
->setMethods(['realDoRequest'])
->onlyMethods(['realDoRequest'])
->getMock();

$client
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/VideorecorderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function testInsertCassetteEjectExisting(): void
$configuration->enableLibraryHooks([]);
$videorecorder = $this->getMockBuilder('\VCR\Videorecorder')
->setConstructorArgs([$configuration, new HttpClient(), VCRFactory::getInstance()])
->setMethods(['eject', 'resetIndex'])
->onlyMethods(['eject', 'resetIndex'])
->getMock();

$videorecorder->expects($this->exactly(2))->method('eject');
Expand Down Expand Up @@ -144,7 +144,7 @@ public function setCassette(Cassette $cassette): void

protected function getClientMock(Request $request, Response $response): HttpClient
{
$client = $this->getMockBuilder(HttpClient::class)->setMethods(['send'])->getMock();
$client = $this->getMockBuilder(HttpClient::class)->onlyMethods(['send'])->getMock();
$client
->expects($this->once())
->method('send')
Expand All @@ -158,7 +158,7 @@ protected function getCassetteMock(Request $request, Response $response, string
{
$cassette = $this->getMockBuilder(Cassette::class)
->disableOriginalConstructor()
->setMethods(['record', 'playback', 'isNew', 'getName'])
->onlyMethods(['record', 'playback', 'isNew', 'getName'])
->getMock();
$cassette
->expects($this->once())
Expand Down
Loading