我正在使用symfony 2.8.3和fosuserbundle,liipfunctionalTestBundle和HWIOAuthBundle。我的测试代码
$client = static::makeClient(true);
// request of any other url is getting the same error
$crawler = $client->request('GET', '/login');
$this->assertStatusCode(302, $client);
$client->followRedirect();
$this->assertStatusCode(200, $client);
此代码始终收到错误“会话启动后无法设置会话ID”。但如果我禁用HWIOAuthBundle - 测试工作正常。有任何想法吗?