Skip to content

Commit

Permalink
Making SessionPhpTest integration test a bit more robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperras authored and nateabele committed Mar 30, 2010
1 parent 013ac4d commit 41a6571
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ public function testStrategiesPhpAdapter() {
$result = Session::read($key, array('name' => 'strategy'));
$this->assertNull($result);

$cache = $_SESSION;
$_SESSION['injectedkey'] = 'hax0r';
$this->expectException('/Possible data tampering - HMAC signature does not match data.');
$result = Session::read($key, array('name' => 'strategy'));
unset($_SESSION['injectedkey']);
$_SESSION = $cache;
}

}

?>

0 comments on commit 41a6571

Please sign in to comment.