Skip to content

Commit

Permalink
Merge branch '5.1' into 5.2
Browse files Browse the repository at this point in the history
* 5.1:
  Use import instead of FQCN
  • Loading branch information
nicolas-grekas committed Jan 27, 2021
2 parents 075b4b4 + 8d0688f commit b03b205
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Tests/AbstractBrowserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use PHPUnit\Framework\TestCase;
use Symfony\Component\BrowserKit\CookieJar;
use Symfony\Component\BrowserKit\Exception\BadMethodCallException;
use Symfony\Component\BrowserKit\History;
use Symfony\Component\BrowserKit\Request;
use Symfony\Component\BrowserKit\Response;
Expand Down Expand Up @@ -46,7 +47,7 @@ public function testGetRequest()

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

$client = $this->getBrowser();
Expand Down Expand Up @@ -83,7 +84,7 @@ public function testGetResponse()

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

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

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

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

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

$client = $this->getBrowser();
Expand Down Expand Up @@ -832,7 +833,7 @@ public function testInternalRequest()

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

$client = $this->getBrowser();
Expand Down

0 comments on commit b03b205

Please sign in to comment.