* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Polymorphine\Session\Tests\Doubles; use Polymorphine\Session\SessionContext; class MockedSessionContext implements SessionContext { public array $writtenData = []; public bool $resetCalled = false; public function reset(): void { $this->resetCalled = true; } public function commit(array $data): void { $this->writtenData = $data; } }