Class CookieWrapperTest.
More...
◆ setUp()
ILIAS\HTTP\Cookies\CookieWrapperTest::setUp |
( |
| ) |
|
|
protected |
◆ setUpBeforeClass()
static ILIAS\HTTP\Cookies\CookieWrapperTest::setUpBeforeClass |
( |
| ) |
|
|
static |
Definition at line 35 of file CookieWrapperTest.php.
37 parent::setUpBeforeClass();
38 self::$cookieFactory =
new CookieFactoryImpl();
◆ testExpireDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieWrapperTest::testExpireDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 93 of file CookieWrapperTest.php.
95 $newCookie = $this->cookie->expire();
98 $this->assertNotEquals($this->cookie->getExpires(), $newCookie->getExpires());
◆ testRememberForeverDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieWrapperTest::testRememberForeverDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 81 of file CookieWrapperTest.php.
83 $newCookie = $this->cookie->rememberForLongTime();
86 $this->assertNotEquals($this->cookie->getExpires(), $newCookie->getExpires());
◆ testWithDomainDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieWrapperTest::testWithDomainDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 131 of file CookieWrapperTest.php.
References $domain.
134 $newCookie = $this->cookie->withDomain(
$domain);
136 $this->assertEquals(
$domain, $newCookie->getDomain());
137 $this->assertNotEquals($this->cookie->getDomain(), $newCookie->getDomain());
if(!array_key_exists('domain', $_REQUEST)) $domain
◆ testWithExpiresDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieWrapperTest::testWithExpiresDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 68 of file CookieWrapperTest.php.
71 $newCookie = $this->cookie->withExpires($expires);
73 $this->assertEquals($expires, $newCookie->getExpires());
74 $this->assertNotEquals($this->cookie->getExpires(), $newCookie->getExpires());
◆ testWithHttpOnlyDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieWrapperTest::testWithHttpOnlyDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 157 of file CookieWrapperTest.php.
160 $newCookie = $this->cookie->withHttpOnly($httpOnly);
162 $this->assertTrue($newCookie->getHttpOnly());
163 $this->assertNotEquals($this->cookie->getHttpOnly(), $newCookie->getHttpOnly());
◆ testWithMaxAgeDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieWrapperTest::testWithMaxAgeDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 105 of file CookieWrapperTest.php.
108 $newCookie = $this->cookie->withMaxAge($maxAge);
110 $this->assertEquals($maxAge, $newCookie->getMaxAge());
111 $this->assertNotEquals($this->cookie->getMaxAge(), $newCookie->getMaxAge());
◆ testWithPathDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieWrapperTest::testWithPathDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 118 of file CookieWrapperTest.php.
References $path.
121 $newCookie = $this->cookie->withPath(
$path);
123 $this->assertEquals(
$path, $newCookie->getPath());
124 $this->assertNotEquals($this->cookie->getPath(), $newCookie->getPath());
◆ testWithSecureDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieWrapperTest::testWithSecureDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 144 of file CookieWrapperTest.php.
147 $newCookie = $this->cookie->withSecure($secure);
149 $this->assertTrue($newCookie->getSecure());
150 $this->assertNotEquals($this->cookie->getSecure(), $newCookie->getSecure());
◆ testWithValueDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieWrapperTest::testWithValueDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 56 of file CookieWrapperTest.php.
59 $newCookie = $this->cookie->withValue(
"yes!");
60 $this->assertEquals($newValue, $newCookie->getValue());
61 $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: