Skip to content

Commit 8d0688f

Browse files
committed
Use import instead of FQCN
1 parent 0aa1a0d commit 8d0688f

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();
@@ -83,7 +84,7 @@ public function testGetResponse()
8384

8485
public function testGetResponseNull()
8586
{
86-
$this->expectException(\Symfony\Component\BrowserKit\Exception\BadMethodCallException::class);
87+
$this->expectException(BadMethodCallException::class);
8788
$this->expectExceptionMessage('The "request()" method must be called before "Symfony\\Component\\BrowserKit\\AbstractBrowser::getResponse()".');
8889

8990
$client = $this->getBrowser();
@@ -92,7 +93,7 @@ public function testGetResponseNull()
9293

9394
public function testGetInternalResponseNull()
9495
{
95-
$this->expectException(\Symfony\Component\BrowserKit\Exception\BadMethodCallException::class);
96+
$this->expectException(BadMethodCallException::class);
9697
$this->expectExceptionMessage('The "request()" method must be called before "Symfony\\Component\\BrowserKit\\AbstractBrowser::getInternalResponse()".');
9798

9899
$client = $this->getBrowser();
@@ -119,7 +120,7 @@ public function testGetCrawler()
119120

120121
public function testGetCrawlerNull()
121122
{
122-
$this->expectException(\Symfony\Component\BrowserKit\Exception\BadMethodCallException::class);
123+
$this->expectException(BadMethodCallException::class);
123124
$this->expectExceptionMessage('The "request()" method must be called before "Symfony\\Component\\BrowserKit\\AbstractBrowser::getCrawler()".');
124125

125126
$client = $this->getBrowser();
@@ -832,7 +833,7 @@ public function testInternalRequest()
832833

833834
public function testInternalRequestNull()
834835
{
835-
$this->expectException(\Symfony\Component\BrowserKit\Exception\BadMethodCallException::class);
836+
$this->expectException(BadMethodCallException::class);
836837
$this->expectExceptionMessage('The "request()" method must be called before "Symfony\\Component\\BrowserKit\\AbstractBrowser::getInternalRequest()".');
837838

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

0 commit comments

Comments
 (0)