From cab05abde36182b6f009f23a3e3229d2b8e8bcf9 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 15 Mar 2018 09:55:45 -0700 Subject: [PATCH] fixed error message format --- src/Symfony/Component/BrowserKit/Client.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/BrowserKit/Client.php b/src/Symfony/Component/BrowserKit/Client.php index 68df87c4f6..0beea40c4d 100644 --- a/src/Symfony/Component/BrowserKit/Client.php +++ b/src/Symfony/Component/BrowserKit/Client.php @@ -190,7 +190,7 @@ abstract class Client { if (null === $this->crawler) { @trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED); - // throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__)); + // throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__)); } return $this->crawler; @@ -205,7 +205,7 @@ abstract class Client { if (null === $this->internalResponse) { @trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED); - // throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__)); + // throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__)); } return $this->internalResponse; @@ -225,7 +225,7 @@ abstract class Client { if (null === $this->response) { @trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED); - // throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__)); + // throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__)); } return $this->response; @@ -240,7 +240,7 @@ abstract class Client { if (null === $this->internalRequest) { @trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED); - // throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__)); + // throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__)); } return $this->internalRequest; @@ -260,7 +260,7 @@ abstract class Client { if (null === $this->request) { @trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED); - // throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__)); + // throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__)); } return $this->request;