Class CookieWrapperTest.
More...
◆ setUpBeforeClass()
static ILIAS\HTTP\Cookies\CookieJarWrapperTest::setUpBeforeClass |
( |
| ) |
|
|
static |
Definition at line 47 of file CookieJarWrapperTest.php.
49 parent::setUpBeforeClass();
50 self::$cookieFactory =
new CookieFactoryImpl();
51 self::$cookieJarFactory =
new CookieJarFactoryImpl();
◆ testWithDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieJarWrapperTest::testWithDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 58 of file CookieJarWrapperTest.php.
60 $cookieName =
"YummyCookie";
61 $cookieValue =
"MilkAndChocolate";
62 $cookie = self::$cookieFactory->create($cookieName, $cookieValue);
63 $cookieJar = self::$cookieJarFactory->fromCookieStrings([]);
65 $newCookieJar = $cookieJar->with($cookie);
67 $this->assertFalse($cookieJar->has($cookieName));
68 $this->assertTrue($newCookieJar->has($cookieName));
70 $this->assertNotEquals($cookieJar, $newCookieJar);
◆ testWithoutDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieJarWrapperTest::testWithoutDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 77 of file CookieJarWrapperTest.php.
79 $cookieName =
"YummyCookie";
80 $cookieValue =
"MilkAndChocolate";
83 $cookieJar = self::$cookieJarFactory->fromCookieStrings([ $cookieName .
'=' . $cookieValue .
';' ]);
86 $newCookieJar = $cookieJar->without($cookieName);
89 $this->assertTrue($cookieJar->has($cookieName));
92 $this->assertFalse($newCookieJar->has($cookieName));
95 $this->assertNotEquals($cookieJar, $newCookieJar);
◆ $cookieFactory
CookieFactory ILIAS\HTTP\Cookies\CookieJarWrapperTest::$cookieFactory |
|
staticprivate |
◆ $cookieJarFactory
The documentation for this class was generated from the following file: