Skip to content

Commit cd53ccd

Browse files
committed
feature #51793 [FrameworkBundle] Change BrowserKitAssertionsTrait::getClient() to be protected (fabpot)
This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] Change BrowserKitAssertionsTrait::getClient() to be protected | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #40817 | License | MIT Make `BrowserKitAssertionsTrait::getClient()` protected (see ticket for use cases). As `getRequest()` and `getResponse()` can easily be retrieved from `getClient()`, they are still private. Commits ------- 7f98fa1 [FrameworkBundle] Change BrowserKitAssertionsTrait::getClient() to be protected
2 parents e73dff3 + 7f98fa1 commit cd53ccd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ CHANGELOG
2626
* Deprecate `framework.serializer.enable_annotations`, use `framework.serializer.enable_attributes` instead
2727
* Add `array $tokenAttributes = []` optional parameter to `KernelBrowser::loginUser()`
2828
* Add support for relative URLs in BrowserKit's redirect assertion.
29+
* Change BrowserKitAssertionsTrait::getClient() to be protected
2930

3031
6.3
3132
---

src/Symfony/Bundle/FrameworkBundle/Test/BrowserKitAssertionsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static function assertThatForClient(Constraint $constraint, string $messa
162162
self::assertThat(self::getClient(), $constraint, $message);
163163
}
164164

165-
private static function getClient(AbstractBrowser $newClient = null): ?AbstractBrowser
165+
protected static function getClient(AbstractBrowser $newClient = null): ?AbstractBrowser
166166
{
167167
static $client;
168168

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy