Rename methods to something less tied to its implementation

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2017-04-10 12:26:52 +02:00
parent c4613733eb
commit 38efa97aa5
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ class NextcloudTestServerContext implements Context {
* BeforeScenario hook scope.
* @throws \Exception if the Docker container can not be started.
*/
public function startNextcloudTestServer(BeforeScenarioScope $scope) {
public function setUpNextcloudTestServer(BeforeScenarioScope $scope) {
$this->dockerHelper->createAndStartContainer();
$serverAddress = $this->dockerHelper->getNextcloudTestServerAddress();
@ -116,7 +116,7 @@ class NextcloudTestServerContext implements Context {
*
* @throws \Exception if the Docker container can not be removed.
*/
public function stopNextcloudTestServer() {
public function cleanUpNextcloudTestServer() {
$this->dockerHelper->stopAndRemoveContainer();
$wasContainerRemovedCallback = function() {