Example #1
0
 /**
  * Getter for the session instance variable.
  *
  * @return MvcLite\Session The session instance.
  */
 public function getSession()
 {
     if (!$this->session) {
         $this->session = \MvcLite\Session::getInstance();
     }
     return $this->session;
 }
Example #2
0
 /**
  * The setup method, called before each test
  */
 public function setUp()
 {
     $this->sut = Session::getInstance();
 }