Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
Release 4.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette authored Apr 16, 2019
2 parents 398ef6a + a4fae58 commit 4c607de
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [4.2.2]
- Added `getHandler` to the Session class for easier testing

## [4.2.1]
- Added additional configuration option `cookie_parameters` ([#4])
- Added `getId` method.
Expand All @@ -26,6 +29,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a


[#4]: https://github.com/userfrosting/session/pull/4
[4.2.2]: https://github.com/userfrosting/session/compare/4.2.1...4.2.2
[4.2.1]: https://github.com/userfrosting/session/compare/4.2.0...4.2.1
[4.2.0]: https://github.com/userfrosting/session/compare/4.1.0...4.2.0
[4.1.0]: https://github.com/userfrosting/session/compare/4.0.1...4.1.0
Expand Down
8 changes: 8 additions & 0 deletions src/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,12 @@ public function offsetUnset($key)
{
$this->set($key, null);
}

/**
* @return SessionHandlerInterface
*/
public function getHandler()
{
return $this->handler;
}
}
10 changes: 10 additions & 0 deletions tests/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ public function testConstructor()
return $session;
}

/**
* @depends testConstructor
*
* @param Session $session
*/
public function testGetHandler(Session $session)
{
$this->assertEquals($this->handler, $session->getHandler());
}

/**
* @depends testConstructor
*
Expand Down

0 comments on commit 4c607de

Please sign in to comment.