Merge branch '4.3' into HEAD
* 4.3: typos bis
This commit is contained in:
commit
cab412f0cb
@ -859,30 +859,3 @@ class AbstractBrowserTest extends TestCase
|
|||||||
$clientChild->submit($clientChild->request('GET', 'http://www.example.com/foo/foobar')->filter('input')->form());
|
$clientChild->submit($clientChild->request('GET', 'http://www.example.com/foo/foobar')->filter('input')->form());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ClassThatInheritClient extends AbstractBrowser
|
|
||||||
{
|
|
||||||
protected $nextResponse = null;
|
|
||||||
|
|
||||||
public function setNextResponse(Response $response)
|
|
||||||
{
|
|
||||||
$this->nextResponse = $response;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function doRequest($request): Response
|
|
||||||
{
|
|
||||||
if (null === $this->nextResponse) {
|
|
||||||
return new Response();
|
|
||||||
}
|
|
||||||
|
|
||||||
$response = $this->nextResponse;
|
|
||||||
$this->nextResponse = null;
|
|
||||||
|
|
||||||
return $response;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function submit(DomCrawlerForm $form, array $values = []): Crawler
|
|
||||||
{
|
|
||||||
return parent::submit($form, $values);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user