mzur / kirby-defuse-session
This package is abandoned and no longer maintained.
No replacement package was suggested.
Allows you to to write tests for code that uses the Kirby 3 session.
v1.0.0
2019-01-15 19:23 UTC
Requires (Dev)
- getkirby/kirby: ^3.0
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2023-09-13 14:23:25 UTC
README
Archived: Use PHPUnit process isolation instead.
Allows you to to write tests for code that uses the Kirby 3 session.
Usage
use Kirby\Cms\App; use Mzur\Kirby\DefuseSession\Defuse; public function testSession() { Defuse::defuse(); $session = App::instance()->session(); $session->set('testKey', 'testValue'); $this->assertEquals('testValue', $session->get('testKey')); }
Installation
composer require --dev mzur/kirby-defuse-session:@beta
Contributing
Feel free to send a pull request!
Issues/Bugs
Please use the GitHub issue tracker.