diff --git a/src/ApiContext.php b/src/ApiContext.php index 276c8df..9b64f34 100644 --- a/src/ApiContext.php +++ b/src/ApiContext.php @@ -18,9 +18,9 @@ class ApiContext extends BaseContext * Initializes context. * Every scenario gets it's own context object. */ - public function __construct() + public function __construct($base_url = "http://localhost:8080") { - $this->base_url = "http://localhost:8080"; + $this->base_url = $base_url; $this->request = [ "headers" => [], "cookies" => [],