Still some session leftovers.

This commit is contained in:
Thomas Tanghus 2013-09-17 19:46:08 +02:00
parent 5bddb5377a
commit 8b4f4a79e2
2 changed files with 0 additions and 15 deletions

View File

@ -106,16 +106,6 @@ abstract class Controller {
}
/**
* Shortcut for getting session variables
* @param string $key the key that will be taken from the $_SESSION array
* @return array the value in the $_SESSION element
*/
public function session($key) {
return $this->request->getSession($key);
}
/**
* Shortcut for getting cookie variables
* @param string $key the key that will be taken from the $_COOKIE array

View File

@ -152,9 +152,4 @@ class ControllerTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals('daheim', $this->controller->env('PATH'));
}
public function testGetSessionVariable(){
$this->assertEquals('kein', $this->controller->session('sezession'));
}
}