Skip to content

Commit

Permalink
Fix regenerateSID
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Apr 9, 2019
1 parent 9186bc0 commit ccfa74c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/class/SC_SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,14 @@ public function testLogout()
public function testRegenerateSID()
{
$this->expected = session_id();
$this->objSession->regenerateSID();
$result = $this->objSession->regenerateSID();
$this->actual = session_id();
$this->assertNotEquals($this->expected, $this->actual);

if ($result === false) {
$this->markTestSkipped('Can not regenerateSID');
$this->assertEquals($this->expected, $this->actual);
} else {
$this->assertNotEquals($this->expected, $this->actual);
}
}
}

0 comments on commit ccfa74c

Please sign in to comment.