Skip to content

Commit 52cd01f

Browse files
Merge branch '5.2' into 5.x
* 5.2: Replace "branch-version" by "versions" in composer.json Bump Symfony version to 5.2.3 Update VERSION for 5.2.2 Update CHANGELOG for 5.2.2 Bump Symfony version to 4.4.20 Update VERSION for 4.4.19 Update CONTRIBUTORS for 4.4.19 Update CHANGELOG for 4.4.19 Use import instead of FQCN
2 parents 9e53d8d + b03b205 commit 52cd01f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Tests/AbstractBrowserTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\BrowserKit\CookieJar;
16+
use Symfony\Component\BrowserKit\Exception\BadMethodCallException;
1617
use Symfony\Component\BrowserKit\History;
1718
use Symfony\Component\BrowserKit\Request;
1819
use Symfony\Component\BrowserKit\Response;
@@ -46,7 +47,7 @@ public function testGetRequest()
4647

4748
public function testGetRequestNull()
4849
{
49-
$this->expectException(\Symfony\Component\BrowserKit\Exception\BadMethodCallException::class);
50+
$this->expectException(BadMethodCallException::class);
5051
$this->expectExceptionMessage('The "request()" method must be called before "Symfony\\Component\\BrowserKit\\AbstractBrowser::getRequest()".');
5152

5253
$client = $this->getBrowser();
@@ -94,7 +95,7 @@ public function testGetResponse()
9495

9596
public function testGetResponseNull()
9697
{
97-
$this->expectException(\Symfony\Component\BrowserKit\Exception\BadMethodCallException::class);
98+
$this->expectException(BadMethodCallException::class);
9899
$this->expectExceptionMessage('The "request()" method must be called before "Symfony\\Component\\BrowserKit\\AbstractBrowser::getResponse()".');
99100

100101
$client = $this->getBrowser();
@@ -103,7 +104,7 @@ public function testGetResponseNull()
103104

104105
public function testGetInternalResponseNull()
105106
{
106-
$this->expectException(\Symfony\Component\BrowserKit\Exception\BadMethodCallException::class);
107+
$this->expectException(BadMethodCallException::class);
107108
$this->expectExceptionMessage('The "request()" method must be called before "Symfony\\Component\\BrowserKit\\AbstractBrowser::getInternalResponse()".');
108109

109110
$client = $this->getBrowser();
@@ -130,7 +131,7 @@ public function testGetCrawler()
130131

131132
public function testGetCrawlerNull()
132133
{
133-
$this->expectException(\Symfony\Component\BrowserKit\Exception\BadMethodCallException::class);
134+
$this->expectException(BadMethodCallException::class);
134135
$this->expectExceptionMessage('The "request()" method must be called before "Symfony\\Component\\BrowserKit\\AbstractBrowser::getCrawler()".');
135136

136137
$client = $this->getBrowser();
@@ -843,7 +844,7 @@ public function testInternalRequest()
843844

844845
public function testInternalRequestNull()
845846
{
846-
$this->expectException(\Symfony\Component\BrowserKit\Exception\BadMethodCallException::class);
847+
$this->expectException(BadMethodCallException::class);
847848
$this->expectExceptionMessage('The "request()" method must be called before "Symfony\\Component\\BrowserKit\\AbstractBrowser::getInternalRequest()".');
848849

849850
$client = $this->getBrowser();

0 commit comments

Comments
 (0)