1

我将 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 - 测试工作正常。有任何想法吗?

4

0 回答 0