1

I'm using symfony 2.8.3 together with fosuserbundle, liipfunctionalTestBundle and HWIOAuthBundle. My test code

$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);

This code is always getting the error 'Cannot set session ID after the session has started'. But if I disable HWIOAuthBundle - the test works fine. Any ideas?

Victor Bredihin
  • 2,220
  • 21
  • 30
  • This error is probably due to some output before the session start. It may be due to an error in HWIOAuthBundle. Do you have any error with the HWIOAuthBundle bundle? – A.L May 12 '16 at 14:28

0 Answers0