Example #1
0
 public function testAllowCookies()
 {
     $cookiedSession = new Session(true);
     $this->assertTrue($cookiedSession->areCookiesAllowed());
     $noCookiedSession = new Session(false);
     $this->assertFalse($noCookiedSession->areCookiesAllowed());
     $sessionDefaultValue = new Session();
     $this->assertFalse($sessionDefaultValue->areCookiesAllowed());
 }