public function testSeeHeaders() { $response = new \Symfony\Component\BrowserKit\Response("", 200, ['Cache-Control' => ['no-cache', 'no-store'], 'Content_Language' => 'en-US']); $this->module->client->mockResponse($response); $this->module->sendGET('/'); $this->module->seeHttpHeader('Cache-Control'); $this->module->seeHttpHeader('content_language', 'en-US'); $this->module->seeHttpHeader('Content-Language', 'en-US'); $this->module->dontSeeHttpHeader('Content-Language', 'en-RU'); $this->module->dontSeeHttpHeader('Content-Language1'); $this->module->seeHttpHeaderOnce('Content-Language'); $this->assertEquals('en-US', $this->module->grabHttpHeader('Content-Language')); $this->assertEquals('no-cache', $this->module->grabHttpHeader('Cache-Control')); $this->assertEquals(['no-cache', 'no-store'], $this->module->grabHttpHeader('Cache-Control', false)); }