Skip to content

Commit

Permalink
Update session tests
Browse files Browse the repository at this point in the history
  • Loading branch information
s3b4stian committed Nov 8, 2016
1 parent f77671e commit 06e471d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tests/Session/DatabaseSessionHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function testSession()

$this->assertEquals(false, $session->testdata);

session_write_close();
$session->commit();
}

/**
Expand All @@ -77,7 +77,7 @@ public function testExpiredSession()

$session->time = $session->time - 1800;

session_write_close();
$session->commit();

$session->setSessionHandler($sessionHandler);
$session->start();
Expand All @@ -87,6 +87,7 @@ public function testExpiredSession()

$this->assertEquals(0, $test);

$session->destroy();
}

/**
Expand Down
5 changes: 3 additions & 2 deletions tests/Session/MemcachedSessionHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testSession()

$this->assertEquals(false, $session->testdata);

session_write_close();
$session->commit();
}

/**
Expand All @@ -76,7 +76,7 @@ public function testExpiredSession()

$session->time = $session->time - 1800;

session_write_close();
$session->commit();

$session->setSessionHandler($sessionHandler);
$session->start();
Expand All @@ -86,6 +86,7 @@ public function testExpiredSession()

$this->assertEquals(0, $test);

$session->destroy();
}

/**
Expand Down

0 comments on commit 06e471d

Please sign in to comment.