kernel = $kernel; } /** * @When this is a demo scenario that sends a request to :path */ public function thisIsADemoScenarioThatSendsARequestTo(string $path) { $this->response = $this->kernel->handle(Request::create($path, 'GET')); } /** * @Then the response should be received */ public function theResponseShouldBeReceived() { assert($this->response !== null); } }