public function testGetParamValue() { $factory = new InnerSessionFactory(); $session = $factory->getInstance(); $_SESSION['test'] = 'getParamValue'; $this->assertEquals($session->getParamValue('test'), 'getParamValue'); $this->assertEquals($session->getParamValue('none'), NULL); $_SESSION = NULL; $this->assertEquals($session->getParamValue('none'), NULL); }
public function getInstance() { if (is_null(self::$Instance)) { self::$Instance = new InnerSession(); } return self::$Instance; }