MainAero/yii2-gtm-widget

View on GitHub
tests/stubs/SessionStub.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace mainaero\yii\gtm\stubs;

use yii\web\Session;

class SessionStub extends Session
{
    public $session = [];

    public function get($key, $defaultValue = null)
    {
        return $this->session[$key] ?? null ;
    }

    public function set($key, $value)
    {
        $this->session[$key] = $value;
    }

    public function remove($key)
    {
    }
}