这就是我在测试用例中获得响应的方式
$response = $this->call('POST','/api/auth/login',['username'=>'xx','password'=>'xxx'], [/* cookies */], [/* files */], ['HTTP_ClientSecret' => 'xxxx']);
Run Code Online (Sandbox Code Playgroud)
然后我们可以通过这样获得响应内容
$response->getContents()
我想知道如何获取响应头数据?