public function it_will_return_the_title_and_contents_of_the_container_for_instantclick_request() { $request = $this->addInstantClickHeaders(new Request()); $response = $this->middleware->handle($request, $this->getNext()); $this->assertTrue($this->isInstantClickReponse($response)); $this->assertEquals("<title>InstantClick title</title>\n <div>Content</div>\n ", $response->getContent()); }