Class CookieWrapperTest.  
 More...
◆ setUp()
  
  
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::setUp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 54 of file CookieWrapperTest.php.
   59         $cookieName = 
"ilias";
    60         $cookieValue = 
"theNewCookiesAreYummy";
    61         $this->cookie = self::$cookieFactory->create($cookieName, $cookieValue);
  
 
 
◆ setUpBeforeClass()
  
  
      
        
          | static ILIAS\HTTP\Cookies\CookieWrapperTest::setUpBeforeClass  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Definition at line 47 of file CookieWrapperTest.php.
   49         parent::setUpBeforeClass();
    50         self::$cookieFactory = 
new CookieFactoryImpl();
  
 
 
◆ testExpireDoesNotChangeTheCurrentObject()
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::testExpireDoesNotChangeTheCurrentObject  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 105 of file CookieWrapperTest.php.
  107         $newCookie = $this->cookie->expire();
   110         $this->assertNotEquals($this->cookie->getExpires(), $newCookie->getExpires());
  
 
 
◆ testRememberForeverDoesNotChangeTheCurrentObject()
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::testRememberForeverDoesNotChangeTheCurrentObject  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 93 of file CookieWrapperTest.php.
   95         $newCookie = $this->cookie->rememberForLongTime();
    98         $this->assertNotEquals($this->cookie->getExpires(), $newCookie->getExpires());
  
 
 
◆ testWithDomainDoesNotChangeTheCurrentObject()
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::testWithDomainDoesNotChangeTheCurrentObject  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 143 of file CookieWrapperTest.php.
  145         $domain = 
'ilias.de';
   146         $newCookie = $this->cookie->withDomain($domain);
   148         $this->assertEquals($domain, $newCookie->getDomain());
   149         $this->assertNotEquals($this->cookie->getDomain(), $newCookie->getDomain());
  
 
 
◆ testWithExpiresDoesNotChangeTheCurrentObject()
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::testWithExpiresDoesNotChangeTheCurrentObject  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 80 of file CookieWrapperTest.php.
   83         $newCookie = $this->cookie->withExpires($expires);
    85         $this->assertEquals($expires, $newCookie->getExpires());
    86         $this->assertNotEquals($this->cookie->getExpires(), $newCookie->getExpires());
  
 
 
◆ testWithHttpOnlyDoesNotChangeTheCurrentObject()
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::testWithHttpOnlyDoesNotChangeTheCurrentObject  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 169 of file CookieWrapperTest.php.
  172         $newCookie = $this->cookie->withHttpOnly($httpOnly);
   174         $this->assertTrue($newCookie->getHttpOnly());
   175         $this->assertNotEquals($this->cookie->getHttpOnly(), $newCookie->getHttpOnly());
  
 
 
◆ testWithMaxAgeDoesNotChangeTheCurrentObject()
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::testWithMaxAgeDoesNotChangeTheCurrentObject  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 117 of file CookieWrapperTest.php.
  120         $newCookie = $this->cookie->withMaxAge($maxAge);
   122         $this->assertEquals($maxAge, $newCookie->getMaxAge());
   123         $this->assertNotEquals($this->cookie->getMaxAge(), $newCookie->getMaxAge());
  
 
 
◆ testWithPathDoesNotChangeTheCurrentObject()
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::testWithPathDoesNotChangeTheCurrentObject  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 130 of file CookieWrapperTest.php.
References $path.
  133         $newCookie = $this->cookie->withPath(
$path);
   135         $this->assertEquals(
$path, $newCookie->getPath());
   136         $this->assertNotEquals($this->cookie->getPath(), $newCookie->getPath());
 
 
 
 
◆ testWithSecureDoesNotChangeTheCurrentObject()
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::testWithSecureDoesNotChangeTheCurrentObject  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 156 of file CookieWrapperTest.php.
  159         $newCookie = $this->cookie->withSecure($secure);
   161         $this->assertTrue($newCookie->getSecure());
   162         $this->assertNotEquals($this->cookie->getSecure(), $newCookie->getSecure());
  
 
 
◆ testWithValueDoesNotChangeTheCurrentObject()
      
        
          | ILIAS\HTTP\Cookies\CookieWrapperTest::testWithValueDoesNotChangeTheCurrentObject  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 68 of file CookieWrapperTest.php.
   71         $newCookie = $this->cookie->withValue(
"yes!");
    72         $this->assertEquals($newValue, $newCookie->getValue());
    73         $this->assertNotEquals($this->cookie->getValue(), $newCookie->getValue());
  
 
 
◆ $cookie
◆ $cookieFactory
  
  
      
        
          | CookieFactory ILIAS\HTTP\Cookies\CookieWrapperTest::$cookieFactory | 
         
       
   | 
  
staticprivate   | 
  
 
 
The documentation for this class was generated from the following file: