Ejemplo n.º 1
0
	/**
	 * set the login name
	 *
	 * @param string|null $loginName for the logged in user
	 */
	public function setLoginName($loginName) {
		if (is_null($loginName)) {
			$this->session->remove('loginname');
		} else {
			$this->session->set('loginname', $loginName);
		}
	}
Ejemplo n.º 2
0
 public function testRemoveNonExisting()
 {
     $this->assertFalse($this->instance->exists('foo'));
     $this->instance->remove('foo');
     $this->assertFalse($this->instance->exists('foo'));
 }