Rename helper for PHP built-in web server

For consistency with the helper for the Apache web server the helper for
the PHP built-in web server was renamed too.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2018-04-09 19:07:19 +02:00
parent aa96dfd173
commit 4341d8731e
2 changed files with 14 additions and 14 deletions

View File

@ -40,12 +40,12 @@ use Behat\Behat\Hook\Scope\BeforeScenarioScope;
*
* The Nextcloud server is provided by an instance of NextcloudTestServerHelper;
* its class must be specified when this context is created. By default,
* "NextcloudTestServerLocalHelper" is used, although that can be customized
* using the "nextcloudTestServerHelper" parameter in "behat.yml". In the same
* way, the parameters to be passed to the helper when it is created can be
* customized using the "nextcloudTestServerHelperParameters" parameter, which
* is an array (without keys) with the value of the parameters in the same order
* as in the constructor of the helper class (by default, [ ]).
* "NextcloudTestServerLocalBuiltInHelper" is used, although that can be
* customized using the "nextcloudTestServerHelper" parameter in "behat.yml". In
* the same way, the parameters to be passed to the helper when it is created
* can be customized using the "nextcloudTestServerHelperParameters" parameter,
* which is an array (without keys) with the value of the parameters in the same
* order as in the constructor of the helper class (by default, [ ]).
*
* Example of custom parameters in "behat.yml":
* default:
@ -73,7 +73,7 @@ class NextcloudTestServerContext implements Context {
* @param array $nextcloudTestServerHelperParameters the parameters for the
* constructor of the $nextcloudTestServerHelper class.
*/
public function __construct($nextcloudTestServerHelper = "NextcloudTestServerLocalHelper",
public function __construct($nextcloudTestServerHelper = "NextcloudTestServerLocalBuiltInHelper",
$nextcloudTestServerHelperParameters = [ ]) {
$nextcloudTestServerHelperClass = new ReflectionClass($nextcloudTestServerHelper);

View File

@ -36,14 +36,14 @@
* initial state for the Nextcloud server expected by the acceptance tests.
*
* The Nextcloud server is available at "$nextcloudServerDomain", which can be
* optionally specified when the NextcloudTestServerLocalHelper is created; if
* no value is given "127.0.0.1" is used by default. In any case, the value of
* "$nextcloudServerDomain" must be seen as a trusted domain by the Nextcloud
* server (which would be the case for "127.0.0.1" if it was installed by
* running "occ maintenance:install"). The base URL to access the Nextcloud
* optionally specified when the NextcloudTestServerLocalBuiltInHelper is
* created; if no value is given "127.0.0.1" is used by default. In any case,
* the value of "$nextcloudServerDomain" must be seen as a trusted domain by the
* Nextcloud server (which would be the case for "127.0.0.1" if it was installed
* by running "occ maintenance:install"). The base URL to access the Nextcloud
* server can be got from "getBaseUrl".
*/
class NextcloudTestServerLocalHelper implements NextcloudTestServerHelper {
class NextcloudTestServerLocalBuiltInHelper implements NextcloudTestServerHelper {
/**
* @var string
@ -56,7 +56,7 @@ class NextcloudTestServerLocalHelper implements NextcloudTestServerHelper {
private $phpServerPid;
/**
* Creates a new NextcloudTestServerLocalHelper.
* Creates a new NextcloudTestServerLocalBuiltInHelper.
*/
public function __construct($nextcloudServerDomain = "127.0.0.1") {
$this->nextcloudServerDomain = $nextcloudServerDomain;