Skip to content
Snippets Groups Projects
Commit b09f6f6c authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Output buffering is now closed earlier in session unit tests

parent aba79575
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ class SessionTest extends SingletonTestCase {
function setUp() {
parent::setUp();
$this->session = Session::getInstance();
$this->session = @Session::getInstance();
}
function tearDown() {
......@@ -72,6 +72,9 @@ class SessionTest extends SingletonTestCase {
$old_id = session_id();
$this->session->regenerateId();
$this->assertNotEquals($old_id, session_id());
// Disable output buffering to show progress on other tests
@ob_end_flush();
}
function testClear() {
......@@ -80,9 +83,6 @@ class SessionTest extends SingletonTestCase {
$this->assertEmpty($_SESSION);
}
/**
* @depends testRegenerateId
*/
function testDestroySimple() {
$this->session->destroy();
$this->assertEquals('', session_id());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment